From 7b83b1056b2b82e610f04821ad9d9febf831c5d8 Mon Sep 17 00:00:00 2001 From: Vivian Zhou Date: Tue, 19 Nov 2024 13:51:49 -0800 Subject: [PATCH] Add support for generic payloads - Add `MAV_CMD_GENERIC_PAYLOAD_FUNCTIONS_CONTROL`, `GENERIC_PAYLOAD_STATUS`,`GENERIC_PAYLOAD_FUNCTION_STATUS`, and `GENERIC_PAYLOAD_ERROR_FLAGS` to development.xml `GENERIC_PAYLOAD_STATUS` is the status for the generic payload, and `GENERIC_PAYLOAD_FUNCTION_STATUS` is the status for individual function(s) of the generic payload that can be controlled via `MAV_CMD_GENERIC_PAYLOAD_FUNCTIONS_CONTROL`. `MAV_CMD_GENERIC_PAYLOAD_FUNCTIONS_CONTROL` is used to control payload functions. It can be used for simple control such as ON/OFF of a flashlight. It can also be used to control multiple functions of a component such as arm/disarm and deployment of a parachute. Topic: generic_payload --- message_definitions/v1.0/development.xml | 37 ++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/message_definitions/v1.0/development.xml b/message_definitions/v1.0/development.xml index bc3e16e140..cf3dddb528 100644 --- a/message_definitions/v1.0/development.xml +++ b/message_definitions/v1.0/development.xml @@ -339,6 +339,11 @@ + + Allows for enable/disable control over function(s) of a generic payload. + Index of Function + 0: Disable, 1: Enable + Allows setting an AT S command of an SiK radio. @@ -567,6 +572,20 @@ RAIM integrity check failed. + + + There is an error with the generic payload's software. + + + There is an error with the generic payload's hardware. + + + A specified limit has been reached by the generic paylod's temperature sensor. This only applies if the generic payload monitors temperature. + + + Generic payload custom failure, see custom error flag bitmask for details. + + @@ -672,6 +691,24 @@ Fuel temperature. NaN: field not provided. Fuel type. Defines units for fuel capacity and consumption fields above. + + Generic payload status. + Time since the start-up of the generic payload in ms + Generic payload name to be used in UI. This is a NULL terminated string. If it is exactly 32 characters long, add a terminating NULL. If this string is empty, a generic name is shown to the user. + Total number of functions on the generic payload that can be controlled. + Errors + Bitmap used to show custom error flags. + The power draw of the generic payload. NaN: field not provided + Generic payload weight. 0: field not provided. + Temperature in Celsius. NaN: field not provided. + + + Generic payload function status. + Generic payload function name to be used in UI. This is a NULL terminated string. If it is exactly 32 characters long, add a terminating NULL. If this string is empty, a generic name is shown to the user. + Index of this function on the generic payload. + 0: Disable, 1: Enable + Total number of functions on the generic payload that can be controlled. + Emitted during mission execution when control reaches MAV_CMD_GROUP_START. Mission-unique group id (from MAV_CMD_GROUP_START).