mirror of
https://github.com/mavlink/mavlink-devguide.git
synced 2026-06-19 07:36:26 +00:00
Reduce
This commit is contained in:
+75
-115
@@ -2,7 +2,11 @@
|
||||
|
||||
## Introduction
|
||||
|
||||
The parachute protocol allows MAVLink control over the behaviour of a parachute that is integrated or attached to the drone. Along with this, the parachute protocol also publishes status information for developers or users.
|
||||
The parachute protocol allows MAVLink control over the behaviour of a parachute that is integrated or attached to the drone.
|
||||
|
||||
This includes both a course grained mechanism to enable/disable automatic triggering and to trigger the parachute manually, and a fine grained mechanism to enable specific trigger sources.
|
||||
|
||||
The protocol also provides a mechanism to publish parachute status information, such as information from its onboard sensors, detected errors, and its deployment state/reason.
|
||||
|
||||
## MAVLink Parachute Implementations
|
||||
|
||||
@@ -10,24 +14,31 @@ These parachutes have built-in MAVLink support:
|
||||
|
||||
- AVSS Parachute for Skydio X10
|
||||
|
||||
## Message/Enum Summary
|
||||
## Message/Commands/Enum Summary
|
||||
|
||||
| Message | Description |
|
||||
| ------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------- |
|
||||
| <span id="PARACHUTE_STATUS"></span>[PARACHUTE_STATUS](../messages/common.md#PARACHUTE_STATUS) | Current status of the parachute. Recommended to publish this at a regular rate (nominally at 1Hz). |
|
||||
| <span id="MAV_CMD_SET_PARACHUTE_ARM"></span>[MAV_CMD_SET_PARACHUTE_ARM](../messages/common.md#MAV_CMD_SET_PARACHUTE_ARM) | Command to arm/disarm parachute module trigger sources. |
|
||||
| Message | Description |
|
||||
| --------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| <a id="PARACHUTE_STATUS"></a>[PARACHUTE_STATUS](../messages/common.md#PARACHUTE_STATUS) | Current status of the parachute, including uptime, errors, arm status, deployment reason/status, safety status, arm altitude, and parachute pack date. |
|
||||
|
||||
| Enum Values | Description |
|
||||
| ------------------------------------------------------------------------------------------------------------- | ---------------------------------- |
|
||||
| <span id="MAV_TYPE_PARACHUTE"></span>[MAV_TYPE_PARACHUTE](../messages/minimal.md#MAV_TYPE_PARACHUTE) | Type of the component (parachute). |
|
||||
| <span id="MAV_COMP_ID_PARACHUTE"></span>[MAV_COMP_ID_PARACHUTE](../messages/minimal.md#MAV_COMP_ID_PARACHUTE) | ID of the component (parachute). |
|
||||
| Command | Description |
|
||||
| ------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| <a id="MAV_CMD_DO_PARACHUTE"></a>[MAV_CMD_DO_PARACHUTE](../messages/common.md#MAV_CMD_DO_PARACHUTE) | Command enable/disable auto release or parachute, or to immediately trigger the parachute (see [PARACHUTE_ACTION](#PARACHUTE_ACTION)). |
|
||||
| <a id="MAV_CMD_SET_PARACHUTE_ARM"></a>[MAV_CMD_SET_PARACHUTE_ARM](../messages/common.md#MAV_CMD_SET_PARACHUTE_ARM) | Command to arm/disarm parachute module trigger sources. |
|
||||
|
||||
| Enum | Description |
|
||||
| --------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------- |
|
||||
| <span id="PARACHUTE_TRIGGER_FLAGS"></span>[PARACHUTE_TRIGGER_FLAGS](../messages/common.md#PARACHUTE_TRIGGER_FLAGS) | Parachute trigger sources. |
|
||||
| <span id="PARACHUTE_DEPLOYMENT_TRIGGER"></span>[PARACHUTE_DEPLOYMENT_TRIGGER](../messages/common.md#PARACHUTE_DEPLOYMENT_TRIGGER) | Parachute deployment trigger source. |
|
||||
| <span id="PARACHUTE_SAFETY_FLAGS"></span>[PARACHUTE_SAFETY_FLAGS](../messages/common.md#PARACHUTE_SAFETY_FLAGS) | Parachute module safety-related flags. |
|
||||
| <span id="PARACHUTE_ERROR_FLAGS"></span>[PARACHUTE_ERROR_FLAGS](../messages/common.md#PARACHUTE_ERROR_FLAGS) | Fault/health indications. |
|
||||
| Enum Values | Description |
|
||||
| ------------------------------------------------------------------------------------------------------- | ---------------------------------------- |
|
||||
| <a id="MAV_TYPE_PARACHUTE"></a>[MAV_TYPE_PARACHUTE](../messages/minimal.md#MAV_TYPE_PARACHUTE) | Type of the component (parachute). |
|
||||
| <a id="MAV_COMP_ID_PARACHUTE"></a>[MAV_COMP_ID_PARACHUTE](../messages/minimal.md#MAV_COMP_ID_PARACHUTE) | Nominal ID of the component (parachute). |
|
||||
|
||||
| Enum | Description |
|
||||
| --------------------------------------------------------------------------------------------------------------------------- | -------------------------------------- |
|
||||
| <a id="PARACHUTE_TRIGGER_FLAGS"></a>[PARACHUTE_TRIGGER_FLAGS](../messages/common.md#PARACHUTE_TRIGGER_FLAGS) | Parachute trigger sources. |
|
||||
| <a id="PARACHUTE_DEPLOYMENT_TRIGGER"></a>[PARACHUTE_DEPLOYMENT_TRIGGER](../messages/common.md#PARACHUTE_DEPLOYMENT_TRIGGER) | Parachute deployment trigger source. |
|
||||
| <a id="PARACHUTE_SAFETY_FLAGS"></a>[PARACHUTE_SAFETY_FLAGS](../messages/common.md#PARACHUTE_SAFETY_FLAGS) | Parachute module safety-related flags. |
|
||||
| <a id="PARACHUTE_ERROR_FLAGS"></a>[PARACHUTE_ERROR_FLAGS](../messages/common.md#PARACHUTE_ERROR_FLAGS) | Fault/health indications. |
|
||||
| <a id="PARACHUTE_ACTION"></a>[PARACHUTE_ACTION](../messages/common.md#PARACHUTE_ACTION) | Fault/health indications. |
|
||||
|
||||
> **Note** A parachute might also be triggered as the result of other commands, such as [MAV_CMD_DO_FLIGHTTERMINATION](../messages/common.md#MAV_CMD_DO_FLIGHTTERMINATION) (but that is not considered part of this protocol).
|
||||
|
||||
## Implementation and Messages
|
||||
|
||||
@@ -40,127 +51,76 @@ Once a heartbeat is received, the drone can then send a [MAV_CMD_REQUEST_MESSAGE
|
||||
|
||||
[MAV_CMD_SET_PARACHUTE_ARM](#MAV_CMD_SET_PARACHUTE_ARM) can also then be sent to configure the arming status of the various possible trigger mechanisms of the parachute.
|
||||
|
||||
### STATUS
|
||||
### Parachute Triggering Sources
|
||||
|
||||
The [PARACHUTE_STATUS](#PARACHUTE_STATUS) message can be requested to receive information about the status of the parachute. This includes information such as uptime, errors, arm status, deployment status, safety status, arm altitude, and parachute pack date.
|
||||
Parachutes may support triggering from many possible sources, such as manually from a dedicated parachute RC trigger control, or from a MAVLink message, or automatically based on triggers such as violating a geofence.
|
||||
|
||||
The parameter list can be found below:
|
||||
| Parameter | Description |
|
||||
|--------------------------|------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| `time_boot_ms` | Time since system boot up in milliseconds. |
|
||||
| `error_status` | Bitmask detailing the [PARACHUTE_ERROR_FLAGS](#PARACHUTE_ERROR_FLAGS). |
|
||||
| `arm_status` | Bitmask detailing the arming status via [PARACHUTE_TRIGGER_FLAGS](#PARACHUTE_TRIGGER_FLAGS). |
|
||||
| `deployment_status` | Parachute deployment status. |
|
||||
| `safety_status` | Parachute safety status. |
|
||||
| `ats_arm_altitude` | Parachute Automatic Trigger System (ATS) auto-arming/disarming altitude in meters. |
|
||||
| `parachute_packed_date` | Parachute packed date (YYYY-MM-DD) in ASCII characters, 0 terminated. All 0: field not provided. |
|
||||
The [MAV_CMD_SET_PARACHUTE_ARM](#MAV_CMD_SET_PARACHUTE_ARM) can be used to enable/disable particular sources for triggering the parachute.
|
||||
The operation follows the normal [Command Protocol](../services/command.md) rules for command/acknowledgment.
|
||||
|
||||
#### PARACHUTE_ERROR_FLAGS
|
||||
|
||||
[PARACHUTE_ERROR_FLAGS](#PARACHUTE_ERROR_FLAGS) is a bitmask that details the various critical errors that may occur within the parachute module or within the communication between the parachute and the drone. This is published in the [PARACHUTE_STATUS](#PARACHUTE_STATUS) message.
|
||||
|
||||
A list of the various errors can be found below:
|
||||
| Bit | Value | Parameter | Description |
|
||||
|-----|----------|------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------|
|
||||
| 0 | 1 | `PARACHUTE_ERROR_FLAGS_BAROMETER_ERROR` | There is an error with the parachute barometer. |
|
||||
| 1 | 2 | `PARACHUTE_ERROR_FLAGS_IMU_ERROR` | There is an error with the parachute IMU. |
|
||||
| 2 | 4 | `PARACHUTE_ERROR_FLAGS_RF_CONNECTION_ERROR` | There is an error with the parachute's RF connection that is used for manual control. |
|
||||
| 3 | 8 | `PARACHUTE_ERROR_FLAGS_LOW_POWER` | Parachute module has low power. |
|
||||
| 4 | 16 | `PARACHUTE_ERROR_FLAGS_FC_CONNECTION_ERROR` | There is an error with the connection between parachute and flight controller (FC). |
|
||||
| 5 | 32 | `PARACHUTE_ERROR_FLAGS_EFTS_CONNECTION_ERROR` | There is an error with the connection between parachute and Electrical Flight Termination System (EFTS). |
|
||||
| 6 | 64 | `PARACHUTE_ERROR_FLAGS_POD_CONNECTION_ERROR` | There is an error with the parachute pod. |
|
||||
| 7 | 128 | `PARACHUTE_ERROR_FLAGS_EFTS_DIAGNOSE` | Parachute Electrical Flight Termination System (EFTS) diagnosis failed. |
|
||||
| 8 | 256 | `PARACHUTE_ERROR_FLAGS_CHARGING_FAILED` | Parachute module charging failed. |
|
||||
| 9 | 512 | `PARACHUTE_ERROR_FLAGS_EXTERNAL_POWER_ERROR` | There is an error with the parachute external power source. |
|
||||
| 10 | 1024 | `PARACHUTE_ERROR_FLAGS_GS_CONNECTION_ERROR` | There is an error with the connection between parachute and Ground Station (GS). |
|
||||
| 11 | 2048 | `PARACHUTE_ERROR_FLAGS_GPS_ERROR` | There is an error with the parachute's GPS. |
|
||||
| 12 | 4096 | `PARACHUTE_ERROR_FLAGS_SUBSYSTEM_CONNECTION_ERROR` | There is an error with the connection between parachute and subsystem (e.g. remote controller, expansion board, etc.). |
|
||||
| 13 | 8192 | `PARACHUTE_ERROR_FLAGS_SUBSYSTEM_FW_ERROR` | There is an error with the parachute subsystem firmware (e.g. wrong firmware version). |
|
||||
| 14 | 16384 | `PARACHUTE_ERROR_FLAGS_RESERVED_1` | Reserved for future use. |
|
||||
| 15 | 32768 | `PARACHUTE_ERROR_FLAGS_RESERVED_2` | Reserved for future use. |
|
||||
| 16 | 65536 | `PARACHUTE_ERROR_FLAGS_LOGGING_ERROR` | There is an error with the parachute's internal logging system. |
|
||||
| 17 | 131072 | `PARACHUTE_ERROR_FLAGS_MODULE_RETIRED` | This parachute module is retired (i.e. too many deployments). |
|
||||
| 18 | 262144 | `PARACHUTE_ERROR_FLAGS_GLOW_WIRE_ERROR` | There is an error with the parachute glow wire. |
|
||||
| 19 | 524288 | `PARACHUTE_ERROR_FLAGS_OFFBOARD_CONNECTION_ERROR` | There is an error with the MAVLink connection between parachute and offboard computer. |
|
||||
| 20 | 1048576 | `PARACHUTE_ERROR_FLAGS_IMU_CALIBRATION_ERROR` | Parachute's internal IMU calibration failed. |
|
||||
|
||||
[PARACHUTE_ERROR_FLAGS_IMU_ERROR](#PARACHUTE_ERROR_FLAGS_IMU_ERROR) is typically used to indicate a hardware failure of the onboard IMU, and [PARACHUTE_ERROR_FLAGS_IMU_CALIBRATION_ERROR](#PARACHUTE_ERROR_FLAGS_IMU_CALIBRATION_ERROR) may indicate that IMU has no calibration or needs re-calibration.
|
||||
|
||||
Depending on the parachute product, not all errors may be applicable. For example, [PARACHUTE_ERROR_FLAGS_LOW_POWER](#PARACHUTE_ERROR_FLAGS_LOW_POWER) would be used if there was an additional power source within the parachute module itself that has its power level monitored.
|
||||
|
||||
#### PARACHUTE_DEPLOYMENT_TRIGGER
|
||||
|
||||
[PARACHUTE_DEPLOYMENT_TRIGGER](#PARACHUTE_DEPLOYMENT_TRIGGER) is an enum that details out the deployment status of the parachute. This enum is set to "0" when the parachute has not been deployed. All other enum values indicate that the parachute has deployed and by which source. This is published in the [PARACHUTE_STATUS](#PARACHUTE_STATUS) message.
|
||||
|
||||
A list of the various enum values can be found below:
|
||||
|
||||
| Value | Parameter | Description |
|
||||
| ----- | ---------------------------------------------- | ----------------------------------------------------- |
|
||||
| 0 | `PARACHUTE_DEPLOYMENT_TRIGGER_NONE` | None (parachute has not deployed) |
|
||||
| 1 | `PARACHUTE_DEPLOYMENT_TRIGGER_MANUAL` | Manual |
|
||||
| 2 | `PARACHUTE_DEPLOYMENT_TRIGGER_ATS` | Automatic trigger system (ATS) |
|
||||
| 3 | `PARACHUTE_DEPLOYMENT_TRIGGER_DRONE` | Drone |
|
||||
| 4 | `PARACHUTE_DEPLOYMENT_TRIGGER_MAVLINK` | MAVLink, e.g. from an offboard computer |
|
||||
| 5 | `PARACHUTE_DEPLOYMENT_TRIGGER_GEOFENCE` | Geofence |
|
||||
| 6 | `PARACHUTE_DEPLOYMENT_TRIGGER_FTS_PRECHECKING` | Flight Termination System (FTS) pre-checking protocol |
|
||||
|
||||
#### PARACHUTE_SAFETY_FLAGS
|
||||
|
||||
[PARACHUTE_SAFETY_FLAGS](#PARACHUTE_SAFETY_FLAGS) is a bitmask that details the safety status of the parachute. This is published in the [PARACHUTE_STATUS](#PARACHUTE_STATUS) message.
|
||||
|
||||
A breakdown of the bitmask can be found below:
|
||||
|
||||
| Value | Parameter | Description |
|
||||
| ----- | --------------------------------------------- | ---------------------------------------------------------------------------------------------------------- |
|
||||
| 1 | `PARACHUTE_SAFETY_FLAGS_GROUND_CLEARED` | The parachute module has cleared a safe distance from the ground for deployment. |
|
||||
| 2 | `PARACHUTE_SAFETY_FLAGS_ON_GROUND` | The parachute's own sensor has confirmed it is stably on the ground. |
|
||||
| 4 | `PARACHUTE_SAFETY_FLAGS_GEOFENCE_MISSION_SET` | The parachute module has downloaded geofence mission successfully and can be triggered by geofence source. |
|
||||
|
||||
[PARACHUTE_SAFETY_FLAGS_GROUND_CLEARED](#PARACHUTE_SAFETY_FLAGS_GROUND_CLEARED) flag is raised depending on the parachute and the inputs defined by the developer/user. This is typically used to block deployment until a desired altitude is reached.
|
||||
|
||||
### MAV_CMD_SET_PARACHUTE_ARM
|
||||
|
||||
This command can be used to arm/disarm the various parachute trigger sources. By configuring the arm/disarm setting of the various trigger sources, a user is able to change the behaviour of the parachute when it is being used. The operation follows the normal [Command Protocol](https://github.com/mavlink/mavlink-devguide/blob/master/en/services/command.md) rules for command/acknowledgment.
|
||||
|
||||
There are two parameters for this command. The first parameter is used to indicate the arm/disarm setting. Setting a bit to "0" indicates disarm and setting a bit to "1" indicates arm. The second parameter is a bitmask that indicates which trigger source is being configured. The bits of both parameters are mapped to [PARACHUTE_TRIGGER_FLAGS](#PARACHUTE_TRIGGER_FLAGS). The parachute will ignore all bit positions in the first parameter that are set to zero in the second parameter, which allows the user to granularly arm/disarm specific sources individually.
|
||||
There are two parameters for this command.
|
||||
The first parameter is used to indicate the arm/disarm setting.
|
||||
Setting a bit to `0` indicates disarm/disable and setting a bit to `1` indicates arm/enable.
|
||||
The second parameter is a bitmask that indicates which trigger sources are being configured.
|
||||
The parameters are both mapped to [PARACHUTE_TRIGGER_FLAGS](#PARACHUTE_TRIGGER_FLAGS).
|
||||
The parachute will ignore all bit positions in the first parameter that are set to zero in the second parameter, which allows the user to arm/disarm specific sources individually.
|
||||
|
||||
For example, the user wants to arm the automatic trigger system and flight controller trigger, and the user wants to disarm the manual and geofence trigger.
|
||||
|
||||
- The first parameter would be `0bxxx0x110`.
|
||||
- The first parameter would be `0bxxx0x110`:
|
||||
|
||||
- Bit 0 for `PARACHUTE_TRIGGER_FLAGS_MANUAL` is set to "0" to disarm.
|
||||
- Bit 1 for `PARACHUTE_TRIGGER_FLAGS_ATS` is set to "1" to arm.
|
||||
- Bit 2 for `PARACHUTE_TRIGGER_FLAGS_FC` is set to "1" to arm.
|
||||
- Bit 4 for `PARACHUTE_TRIGGER_FLAGS_GEOFENCE` is set to "0" to disarm.
|
||||
- The second parameter would be `0b00010111`.
|
||||
|
||||
- The second parameter would be `0b00010111`:
|
||||
|
||||
- Since bit 0, 1, 2, and 4 are being configured and no other trigger sources are being configured, all of those bits are set to "1" to indicate that those specific trigger sources need their arm statuses to be updated.
|
||||
- All other bits, such as bit 3, are ignored. The parachute should not change the arm/disarm status of the trigger source mapped to bit 3.
|
||||
|
||||
#### PARACHUTE_TRIGGER_FLAGS
|
||||
### Parachute Status
|
||||
|
||||
[PARACHUTE_TRIGGER_FLAGS](#PARACHUTE_TRIGGER_FLAGS) is a bitmask that is used in the parameters of the [MAV_CMD_SET_PARACHUTE_ARM](#MAV_CMD_SET_PARACHUTE_ARM) command and is published in the [PARACHUTE_STATUS](#PARACHUTE_STATUS) message. When published in the [PARACHUTE_STATUS](#PARACHUTE_STATUS) message, the bitmask details the various arm/disarm states of all the trigger flags. Please note that the implementation of the auto-arm and auto-disarm conditions are developer-specific.
|
||||
The [PARACHUTE_STATUS](#PARACHUTE_STATUS) message provides information about the status of the parachute, including uptime, errors, arm status, deployment status, safety status, arm altitude, and parachute pack date.
|
||||
|
||||
A list of the various flags can be found below:
|
||||
This should be streamed at (nominally) 1Hz.
|
||||
A parachute should support setting the rate using [MAV_CMD_SET_MESSAGE_INTERVAL](../messages/common.md#MAV_CMD_SET_MESSAGE_INTERVAL).
|
||||
|
||||
| Bit | Value | Parameter | Description |
|
||||
| --- | ----- | ----------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| 0 | 1 | `PARACHUTE_TRIGGER_FLAGS_MANUAL` | Manual trigger (ground based control via parachute-specific RF channel) |
|
||||
| 1 | 2 | `PARACHUTE_TRIGGER_FLAGS_ATS` | Automatic trigger system (ATS) |
|
||||
| 2 | 4 | `PARACHUTE_TRIGGER_FLAGS_FC` | Flight controller trigger (e.g. MAVLink from FC, PWM, DroneCan, RC Control) |
|
||||
| 3 | 8 | `PARACHUTE_TRIGGER_FLAGS_OFFBOARD` | Offboard computer trigger (via MAVLink) |
|
||||
| 4 | 16 | `PARACHUTE_TRIGGER_FLAGS_GEOFENCE` | Geofence trigger (by parachute). Parachute uses MAVLink mission protocol to fetch geofence. |
|
||||
| 5 | 32 | `PARACHUTE_TRIGGER_FLAGS_FTS_PRECHECKING` | FTS (flight termination system) pre-checking protocol trigger |
|
||||
| 6 | 64 | `PARACHUTE_TRIGGER_FLAGS_ATS_AUTO_ARM` | Auto-arming of parachute automatic trigger system (ATS). This allows a parachute to enable ATS after reaching a desired altitude. |
|
||||
| 7 | 128 | `PARACHUTE_TRIGGER_FLAGS_ATS_AUTO_DISARM` | Auto-disarming of parachute automatic trigger system (ATS). This allows a parachute to disable ATS after detecting that it is below a desired altitude. |
|
||||
#### Errors
|
||||
|
||||
Errors are reported in [PARACHUTE_STATUS](#PARACHUTE_STATUS) using a bitmask of the flags in [PARACHUTE_ERROR_FLAGS](#PARACHUTE_ERROR_FLAGS).
|
||||
The errors include problems within the parachute module or within the communication between the parachute and the drone.
|
||||
|
||||
Depending on the parachute product, not all errors may be applicable.
|
||||
For example, [PARACHUTE_ERROR_FLAGS_LOW_POWER](#PARACHUTE_ERROR_FLAGS_LOW_POWER) would be used if there was an additional power source within the parachute module itself that has its power level monitored.
|
||||
|
||||
#### Deployment reason/status
|
||||
|
||||
The reason for deployment, if any, is published in the [PARACHUTE_STATUS](#PARACHUTE_STATUS) message.
|
||||
The possible reasons are defined in the [PARACHUTE_DEPLOYMENT_TRIGGER](#PARACHUTE_DEPLOYMENT_TRIGGER) is an enum, and match the possible triggers that may have been set.
|
||||
|
||||
#### Safety and readiness for deployment
|
||||
|
||||
[PARACHUTE_STATUS](#PARACHUTE_STATUS) message provides [PARACHUTE_SAFETY_FLAGS](#PARACHUTE_SAFETY_FLAGS) for reporting information related to safety and readiness for deployment.
|
||||
For example, [PARACHUTE_SAFETY_FLAGS_GROUND_CLEARED](#PARACHUTE_SAFETY_FLAGS_GROUND_CLEARED) flag is raised depending on the parachute and the inputs defined by the developer/user. This is typically used to block deployment until a desired altitude is reached.
|
||||
|
||||
Flags are also used to indicate if the parachute has a geofence mission set, and hence whether it can be used for automatic geofence triggering.
|
||||
|
||||
## Test Script
|
||||
|
||||
#### Description
|
||||
### Description
|
||||
|
||||
The test suite `test_parachute.py` runs a script to validate the emulator and can also be used to validate your own parachute module. The script `parachute.py` will emulate a standard parachute module that uses MAVLink v2 UDP connections.
|
||||
The test suite `test_parachute.py` runs a script to validate the emulator and can also be used to validate your own parachute module.
|
||||
The script `parachute.py` will emulate a standard parachute module that uses MAVLink v2 UDP connections.
|
||||
|
||||
#### Instructions
|
||||
### Instructions
|
||||
|
||||
1. Run parachute emulator `python3 parachute.py`
|
||||
2. Run test `MAVLINK20=1 python3 test_parachute.py` (or `MAVLINK20=1 python3 -m unittest -v test_parachute.py` for more verbosity)
|
||||
|
||||
To use the test suite on other parachute modules, set the relevant environment variables `MAVLINK_DIALECT`, `MAVLINK_UDPIN`, and `MAVLINK_UDPOUT`. The format is as follows: `MAVLINK20=1 MAVLINK_DIALECT=dialect MAVLINK_UDPIN=udpin MAVLINK_UDPOUT=udpout python3 test_parachute.py`
|
||||
To use the test suite on other parachute modules, set the relevant environment variables `MAVLINK_DIALECT`, `MAVLINK_UDPIN`, and `MAVLINK_UDPOUT`.
|
||||
The format is as follows:
|
||||
|
||||
```sh
|
||||
MAVLINK20=1 MAVLINK_DIALECT=dialect MAVLINK_UDPIN=udpin MAVLINK_UDPOUT=udpout python3 test_parachute.py
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user