# Drone Controls

#### Flight Controls

The flight control tray enables the operator to have access to crucial in-flight commands like Return To Docking Station (RTDS), Return To Safe Location (RTSL), Land, Precision Land, Return To Home (RTH), Pause/Resume the ongoing mission and Emergency Stop.

<figure><img src="/files/GhhdPgvl809oZRRzUZXq" alt=""><figcaption><p>Flight Controls</p></figcaption></figure>

{% tabs %}
{% tab title="Emergency Stop " %}

### Emergency Stop

{% hint style="warning" %}
Emergency Stop feature is currently supported with Mavic 2 series drones and M300 drones (with Odroid-based edge devices) only.&#x20;

Required FlytBase APK version: 2.5.0-6 and above
{% endhint %}

**Implementation:** Once the 'Emergency Stop' button is pressed, it effectively overrides all ongoing operations. The drone instantaneously enters a standstill mode, refusing any additional commands from the dashboard. This safety measure meets any potential emergencies head-on, allowing operators to prevent unintended movements swiftly.

By clicking on the 'Re-activate Operations' button, operators can smoothly transition back to command acceptation mode from the dashboard, once the need for an emergency stop has passed.

This replaces the "Abort" button that previously existed on the platform where any new commands given by the operator were accepted by the drone. &#x20;

<figure><img src="/files/vYEKNkcvqjKdZqzRbYLG" alt=""><figcaption></figcaption></figure>

**Steps to use the 'Emergency Stop' feature:**

* While the drone is performing a flight, the operator can click on the 'Emergency Stop' button located at the bottom right corner of the FlytBase dashboard.

<figure><img src="/files/kumd2h64mbbfmOTH5b3r" alt=""><figcaption><p>Emergency Stop button</p></figcaption></figure>

* Upon pressing the button, the operator would receive a confirmation on the dashboard in the form of toaster messages (notifications).

<figure><img src="/files/zH6xkVoiunIZE6SXMPEC" alt="" width="115"><figcaption><p>In-progress</p></figcaption></figure>

<figure><img src="/files/HW6rXg0dDoOG4vmXd0eP" alt=""><figcaption><p>Notifications upon pressing Emergency Stop Button</p></figcaption></figure>

* **Expected Behavior once Emergency Stop has been executed by the operator:**
  1. The drone will hover and hold its current position.
  2. The following controls will not be available until operations are reactivated:

     i) RTDS (Return To Docking Station)

     ii) RTSL (Return To Safe Location)/ RTH (Return To Home)

     iii) PL (Precision Landing)\
     iv) Pause/Resume\
     v) Land\
     vi) Manual Controls of the drone using the dashboard\
     vii) Operators would also no longer be able to:\
     &#x20;   a) Start another mission\
     &#x20;   b) Perform Go to location

{% hint style="success" %}
The drone will carry out pre-configured failsafe actions for Low Battery, Critical Battery, and RC Link Loss Failsafe, even if the Emergency Stop is engaged.
{% endhint %}

#### Steps to Re-activate operations once Emergency Stop has been executed:

<figure><img src="/files/CzkMHC0wGl7I1gliE68i" alt="" width="115"><figcaption><p>Re-activate Operations</p></figcaption></figure>

* Operators may click on the Re-activate Operations button in the bottom right corner of the dashboard in order to continue flying with the respective drone.

<figure><img src="/files/oCQF3lHuuNUZQq3t0HPW" alt="" width="115"><figcaption><p>In progress</p></figcaption></figure>

<figure><img src="/files/wCGOzgOsnuBo2zVHyECE" alt=""><figcaption><p>Re-activiting Operations</p></figcaption></figure>

* Once the operations are reactivated, the drone can accept all flight commands as well as perform failsafe actions without any exceptions.

For a better understanding of the drone's behavior in common situations involving the use of the Emergency Stop, please refer to the subsequent table.

<table><thead><tr><th width="171">Scenario</th><th>Expected Behavior </th></tr></thead><tbody><tr><td>During a pre-planned mission</td><td><p>Once the Operator engages Emergency Stop, the drone will abort its actions and hover at its location. <br><br>It would also no longer accept any commands from the dashboard.</p><p></p><p>After the Operator reactivates the operations, the drone will keep hovering although, it can accept commands from the dashboard.<br><br>The operator may then resume the mission, perform RTDS, RTSL, land, etc. and control the drone normally as before.</p></td></tr><tr><td>When a Failsafe is triggered</td><td>When Emergency Stop is activated by the operator, the following failsafes would override the Emergency Stop and reactivate operations:<br>1. Low Battery Failsafe<br>2. RC Link Loss Failsafe<br>3. Critical Battery Failsafe<br><br>Except for the above-mentioned failsafes, all other failsafes would be rejected by the drone if Emergency Stop is active.</td></tr><tr><td>Manual Controls being accessed by the Operator </td><td>In case an Emergency Stop is engaged while the Operator has taken Manual Control of the drone, the drone will hover at its position and will not accept any commands from the dashboard. <br><br>Once the operations are re-activated, the operator needs to enable Manual Controls again to continue using the drone using the keyboard, joystick or the on-screen joypad.</td></tr></tbody></table>
{% endtab %}

{% tab title="Manual Control" %}

#### The FlytBase dashboard offers multiple options for controlling both the drone and its camera payload.

#### To use the on-screen joypad follow the steps mentioned below:

* &#x20;Launch the drone for a manual flight and click on the manual control button on the dashboard.

{% hint style="info" %}
An operator may also take control of the drone remotely while the drone performs a mission by clicking on the manual control button on the dashboard.
{% endhint %}

* Click on the manual control button to take manual control of the drone.<br>

  <figure><img src="/files/vHFdQqg1e1MBYZHb9cJM" alt=""><figcaption><p>Manual Control button</p></figcaption></figure>
* Once done, the onscreen joypad is active by default.&#x20;
* To control the drone using the on-screen joypad, the operator needs to simply click on the appropriate buttons on the joypad.&#x20;

<figure><img src="/files/qacnm1WJ9RwREesdTAag" alt=""><figcaption><p>On-screen joypad</p></figcaption></figure>

#### How it works:

<figure><img src="/files/ZFwJJpt2xylsFt3EmOq9" alt=""><figcaption><p>Using on-screen joypad on FlytBase</p></figcaption></figure>

{% hint style="info" %}
The buttons on the joypad follow the standard notation of Yaw, Throttle, Pitch and Roll like any remote controller of a drone set to mode 2.
{% endhint %}

<figure><img src="/files/ayI5H3107bahs12eAj1L" alt=""><figcaption><p>DJI RC standard modes</p></figcaption></figure>
{% endtab %}

{% tab title="Video Streaming" %}

## Live HD video feed

* Once the drone is turned on and connected to the FlytBase Mobile, the drone status will be online on the web dashboard.
* Select the drone and its live video can be seen on the top right window of the FlytBase dashboard which is its webpage cockpit view.&#x20;

{% hint style="warning" %}
If the operator is not able to see the live video in the cockpit view, click on the refresh button on the left-top corner of the cockpit.

If the operator is unable to see the live video they can take remote access via the remote access tool shared by the FlytBase support team and then follow the steps mentioned for live users. Please contact [<mark style="color:blue;">support@flytbase.com</mark>](mailto:support@flytbase.com)<mark style="color:green;">.</mark>
{% endhint %}

<figure><img src="/files/pib1fuG8lnJ8ltTS7WlV" alt=""><figcaption><p>Live stream on the Dashboard</p></figcaption></figure>

{% hint style="info" %}
**Note:** To stop the video stream close the mobile app.
{% endhint %}

## Video recording

With the operator's AWS S3 Cloud bucket ready, they can start recording the video feed of their mission. Moreover, they can playback and download these videos on demand.                        &#x20;

* Once the operator's drone is connected and the live video starts streaming on the FlytBase Dashboard, the operator should hover over the<img src="/files/EOqsKNhGdBAOQ5G1DK4C" alt="" data-size="line">icon in the Video section. An expanded menu will show camera options to click a photo, a recorder to record video, and a share option to share a feed.&#x20;

<figure><img src="/files/OMCTLgzB6iITbI9r32CZ" alt=""><figcaption><p>Hover at + and capture, and record.</p></figcaption></figure>

* The operator should click on the red record icon<img src="/files/yESz4vGbFcFDfosV5f1C" alt="" data-size="line">to start recording their drone mission feed. They can use the white circle icon to capture an image.&#x20;
* To stop recording the video, the operator should click on the same icon again.

{% hint style="success" %}
The operator can replay, download and manage the recorded videos in the Video Manager.
{% endhint %}

For sharing navigate to [<mark style="color:blue;">Guest Sharing</mark>](#guest-sharing)<mark style="color:green;">.</mark>

{% hint style="info" %}
Lastly, the operator can capture an image by using the white circle icon<img src="/files/vsEOdKjjs5l6xMzEsPRQ" alt="" data-size="line">.
{% endhint %}

## Video Streaming Optimization

This feature gives operators the capability to optimize the video stream to achieve better FPS (frames per second) or better picture quality in cases of limited/poor bandwidth connections. On a good network connection, this optimization is not necessary and both FPS and picture quality are expected to be at their best. However, for limited/poor bandwidth connections, the optimization of the video stream may be considered to cater to the use case. The value can be dynamically set by the operator and should take effect within 3-5 seconds.

Video content hint can be set by the operator to one of the following values:&#x20;

* **Default:** No hint/optimization is applied.&#x20;
* **Motion**: Priority will be given to the number of frames per second streamed. This results in a smooth video, for example, when the drone is flying at high speed. This may result in blurred/pixelated images.&#x20;
* **Detail:** Priority will be given to the quality of the image in the video stream. This results in a high-quality image but may cause stuttering/choppy video, for example, when zooming onto a car number plate, the text would be much easier to read.
* **High Detail:** Its applicability to a particular situation is yet to be determined.

<figure><img src="/files/kw4YG5NiusvAnqmFKllZ" alt=""><figcaption><p>Video Streaming Optimization: Map View</p></figcaption></figure>

<figure><img src="/files/E4FyIxcKLhS9cxkGD198" alt=""><figcaption><p>Video Streaming Optimization: Cockpit View</p></figcaption></figure>

## **Video Streaming Statistics Widget**

This widget can be used by operators to troubleshoot issues with network connection quality and bandwidth that usually cause low-quality video streams.&#x20;

1. **Video Bitrate (Time vs kbps)**

   Bitrate is the measure of the amount of data sent over the network. A good quality video stream for Mavic 2 (HD Quality) requires about 2000 kbps bitrate.

   Graphs in the FlytBase Dashboard are displayed for:

   * **Video stream from Drone to Cloud:**\
     This is the current bitrate of the video stream from the drone to the media router in the cloud. If this bitrate is lower then the network connection of the drone/SBC/starter kit may have lower bandwidth.
   * **Video stream from Cloud to FlytBase:**\
     This is the current bitrate of the video stream from the media router to the user’s browser. If this bitrate is lower then the network connection on the user’s machine (running dashboard) has lower bandwidth.
2. **User-interface to view**&#x20;
   * **Packet Loss**: High packet loss will result in a jittery video feed and loss of frames
   * **RC resolution**: RC resolution is the downlink bitrate from the Drone to the Remote Controller
   * **RC channels:** This is the Operational Frequency Range for DJI drones i.e 2.4 GHz, 5.8 GHz or, both 2.4 GHz and 5.8 GHz (Dual Channel)
   * **RC bit rate:** The bitrate is related to the transfer capacity between the drone and the RC connected to the SBC/edge kit

<figure><img src="/files/JFVeOCyDrLeEMe6FzmTU" alt=""><figcaption><p>Video Streaming Statistics Widget</p></figcaption></figure>
{% endtab %}

{% tab title="Camera Controls" %}
The camera feed on the FlytBase Dashboard can be zoomed in and out in the Live Video Stream section&#x20;

### Zooming&#x20;

* **Zoom In** on the camera feed can be achieved by clicking on the ![](/files/McB2O61j10rYc8n6N1Mm)icon. The maximum zoom can be reached by clicking on the **T** icon.

<figure><img src="/files/xuDICfkYHKjIMNAf5YMG" alt=""><figcaption><p>Zoom In</p></figcaption></figure>

* **Zoom Out** of the camera feed can be done by clicking on the ![](/files/tlCrNniEO9xWO5o7h6VR) icon. The maximum wide-angle feed can be viewed by clicking on the **W** icon.

<figure><img src="/files/2XXrehX5Nrq7JX9b76a9" alt=""><figcaption><p>Zoom Out</p></figcaption></figure>

## DJI Enterprise Camera Payload

The operator can toggle between the RGB and thermal feed, switch between MSX & IR of the thermal feed, and select the desired color palette.&#x20;

* Once the drone is turned on, the status will become online and show telemetry data and live video feed.

### Toggling between RGB & Thermal Feed

* Enable the Thermal video feed in FlytBase Dashboard using the toggle button under the video feed.&#x20;
* Use the same toggle button to switch back to RGB Feed.

<figure><img src="/files/gvsgI95nZRs4J5ViBDUX" alt=""><figcaption><p>Toggle between RGB &#x26; Thermal</p></figcaption></figure>

#### Switching between IR & MSX in Thermal Feed

* Select the leftmost dropdown under the live video feed. Choose between IR and MSX from the options.

<figure><img src="/files/cGFbyWLWVkqoDI2o9Hwj" alt=""><figcaption><p>Switching between IR and MSX</p></figcaption></figure>

{% hint style="info" %}
MSX captures useful visible details like lines and edges that are then superimposed onto the thermal image. MSX gives images captured on lower-resolution cameras more defined details.
{% endhint %}

#### Selecting the Color Palette&#x20;

* In the dropdown beside the IR/MSX option, they will be able to select the desired color palette.&#x20;
* Scroll down to the color palette and choose the desired option.

<figure><img src="/files/unsUZloEiAOGC5u4e03z" alt=""><figcaption><p>Selecting desired color palette</p></figcaption></figure>

{% hint style="success" %}
The operator can choose between Rainbow, Hotspot, Gray, Hotmetal and Coldspot for the drone!
{% endhint %}
{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://legacydocs.flytbase.com/flight-operations/drone-controls.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
