### Install Sphinx and Extensions (pip3) Source: https://github.com/codevdynamics/docs/blob/main/README.rst This command uses pip3, the package installer for Python 3, to install Sphinx along with several common extensions and themes necessary for building documentation, including sphinx-autobuild for automatic rebuilding and sphinx_rtd_theme for a popular theme. ```Shell pip3 install sphinx sphinx-autobuild sphinx_rtd_theme sphinxcontrib-plantuml ``` -------------------------------- ### Get Mission File Content Server Publish JSON Source: https://github.com/codevdynamics/docs/blob/main/source/interface/mqtt.rst Example JSON payload published by the server to request the content of a specific mission file from the terminal. Includes the name of the mission file to retrieve. ```JSON { "name": "test.mission", "msg_type": 1496 } ``` -------------------------------- ### Install Sphinx and Dependencies (pip) Source: https://github.com/codevdynamics/docs/blob/main/source/sphinx/installation.rst This command uses pip3, the Python package installer, to install Sphinx, sphinx-autobuild (for automatic rebuilding), and sphinx_rtd_theme (a common theme). These are essential packages for building documentation with Sphinx. ```Shell pip3 install sphinx sphinx-autobuild sphinx_rtd_theme ``` -------------------------------- ### Get Mission File Content Terminal Response JSON Source: https://github.com/codevdynamics/docs/blob/main/source/interface/mqtt.rst Example JSON payload from the terminal containing the content of a requested mission file. Includes the result status, filename, an array of mission items with coordinates and actions, and an optional error message. ```JSON { "result": 1, "filename": "test.mission", "missionItems": [ { "latitude": 32.111, "longitude": 120.111, "altitude_rel": 82.6, "vehicle_action": 1 }, { "latitude": 32.111, "longitude": 120.112, "altitude_rel": 82.6, "vehicle_action": 0, "speed": 5.0, "is_fly_through": true }, { "latitude": 32.111, "longitude": 120.113, "altitude_rel": 82.6, "camera_action": 0, "gimbal_pitch": 10.0, "gimbal_yaw": 45.0, "is_fly_through": false } ], "msg_type": 1496 } ``` -------------------------------- ### Upload Mission File Terminal Response JSON Source: https://github.com/codevdynamics/docs/blob/main/source/interface/mqtt.rst Example JSON payload from the terminal confirming the successful upload of a mission file. Includes the result status and the actual filename created on the terminal. ```JSON { "result": 1, "filename": "test_1.mission" } ``` -------------------------------- ### Upload Task File Protocol/Credentials JSON Source: https://github.com/codevdynamics/docs/blob/main/source/interface/mqtt.rst Example JSON payload providing details for uploading task files to a server, including the upload URL, access key, and secret key. Specifies the protocol for the upload. ```JSON { "msg_type": 1305, "upload_url": "http://127.0.0.1:9000/bucket", "access_key": "1234567890", "secret_key": "1234567890" } ``` -------------------------------- ### Delete Mission File Terminal Response JSON Source: https://github.com/codevdynamics/docs/blob/main/source/interface/mqtt.rst Example JSON payload from the terminal confirming the deletion of a mission file. Includes the result status, the name of the deleted file, and the message type. ```JSON { "result": 1, "filename": "test.mission", "msg_type": 1497 } ``` -------------------------------- ### Delete Mission File Server Publish JSON Source: https://github.com/codevdynamics/docs/blob/main/source/interface/mqtt.rst Example JSON payload published by the server to request the deletion of a specific mission file on the terminal. Includes the name of the mission file to delete. ```JSON { "name": "test.mission", "msg_type": 1497 } ``` -------------------------------- ### Set RTL Auto-Trigger Task Server Publish JSON Source: https://github.com/codevdynamics/docs/blob/main/source/interface/mqtt.rst Example JSON payload published by the server to set the task triggered after the drone returns to launch. Specifies the job to be executed (e.g., Recovery, AccurateLand) or an empty string to disable. ```JSON { "job": "Recovery", "msg_type": 1399 } ``` -------------------------------- ### Environmental and Hangar Status MQTT Payload (JSON) Source: https://github.com/codevdynamics/docs/blob/main/source/interface/mqtt.rst Example JSON payload representing the status of environmental conditions (weather) and hangar components (doors, lift, limits, air conditioning), along with aircraft charging and fit status. This message provides a comprehensive snapshot of the hangar environment and internal systems. ```JSON { "rainfall": 0.0, "wind_speed": 4.0, "wind_direction": 90, "temperature": 28.0, "humidity": 70.0, "setting_temp": 25.0, "pressure": 1001, "aircondition_running": true, "plc_power": false, "aircraft_charging": true, "aircraft_fit": true, "door_opening": false, "door_closing": false, "door_opened": true, "door_closed": false, "lift_uping": false, "lift_downing": false, "lift_up": true, "lift_down": false, "vertical_fixing": false, "vertical_releasing": false, "vertical_fixed": false, "vertical_released": true, "horizontal_fixing": false, "horizontal_releasing": false, "horizontal_fixed": false, "horizontal_released": true, "combinations_running": false } ``` -------------------------------- ### Set RTL Auto-Trigger Task Terminal Response JSON Source: https://github.com/codevdynamics/docs/blob/main/source/interface/mqtt.rst Example JSON payload representing the terminal's response after receiving a request to set the RTL auto-trigger task. Includes the message type and the result status. ```JSON { "result": 1, "msg_type": 1399 } ``` -------------------------------- ### Linked Task Status MQTT Payload (JSON) Source: https://github.com/codevdynamics/docs/blob/main/source/interface/mqtt.rst Example JSON payload detailing the status of a linked task or schedule. It indicates if a task is currently running, the total number executed, the type of the current job (e.g., Mission, Recovery), its parameters, and any task triggered by Return To Launch (RTL). ```JSON { "msg_type": 4, "running": true, "total_executed": 20, "current_job": "Mission", "json_params": "{\"name\": \"test.plan\"}", "rtl_in_idle": "" } ``` -------------------------------- ### Aircraft Disconnection Event MQTT Payload (JSON) Source: https://github.com/codevdynamics/docs/blob/main/source/interface/mqtt.rst Example JSON payload sent when an aircraft disconnects. It contains the last known telemetry data including aircraft ID, timestamp, landed state, flight mode, home and current position, attitude (roll, pitch, yaw), GPS status, speed, battery percentage, and the event datetime. ```JSON { "aircraft_id": "0600003633353833305117022024", "timestamp": 179525156, "landed_state": "On Ground", "flight_mode": "Posctl", "home": [ 23.173951, 113.4198426, 31.09400177, 0 ], "position": [ 23.1739512, 113.4198423, 30.76000214, -0.3340000212 ], "aircraft_roll": -0.962998867, "aircraft_pitch": 0.8330261111, "aircraft_yaw": 9.299003601, "satellite_number": 10, "gps_fix_type": "Fix 3D", "aircraft_speed": [ 0.05, 0.02, 0.01 ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.