mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-29 17:23:34 +08:00
Add fuel tank status report support
* Adds support to DroneCAN FuelTankStatus messages * Adds fuel_tank_status uORB message * Adds FUEL_STATUS MAVLink stream * Adds parameter to define max fuel tank capacity
This commit is contained in:
@@ -97,6 +97,20 @@ PARAM_DEFINE_FLOAT(UAVCAN_RNG_MIN, 0.3f);
|
||||
*/
|
||||
PARAM_DEFINE_FLOAT(UAVCAN_RNG_MAX, 200.0f);
|
||||
|
||||
/**
|
||||
* UAVCAN fuel tank maximum capacity
|
||||
*
|
||||
* This parameter defines the maximum fuel capacity of the vehicle's fuel tank.
|
||||
*
|
||||
* @min 0.0
|
||||
* @max 100000.0
|
||||
* @unit liters
|
||||
* @decimal 1
|
||||
* @increment 0.1
|
||||
* @group UAVCAN
|
||||
*/
|
||||
PARAM_DEFINE_FLOAT(UAVCAN_ECU_MAXF, 15.0f);
|
||||
|
||||
/**
|
||||
* UAVCAN ANTI_COLLISION light operating mode
|
||||
*
|
||||
@@ -292,6 +306,17 @@ PARAM_DEFINE_INT32(UAVCAN_SUB_DPRES, 0);
|
||||
*/
|
||||
PARAM_DEFINE_INT32(UAVCAN_SUB_FLOW, 0);
|
||||
|
||||
/**
|
||||
* subscription fuel tank
|
||||
*
|
||||
* Enable UAVCAN fuel tank status subscription.
|
||||
*
|
||||
* @boolean
|
||||
* @reboot_required true
|
||||
* @group UAVCAN
|
||||
*/
|
||||
PARAM_DEFINE_INT32(UAVCAN_SUB_FUEL, 0);
|
||||
|
||||
/**
|
||||
* subscription GPS
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user