mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-29 15:53:34 +08:00
src: drivers: uavcan: allow to set the fuel type through a parameter
This commit is contained in:
@@ -111,6 +111,24 @@ PARAM_DEFINE_FLOAT(UAVCAN_RNG_MAX, 200.0f);
|
||||
*/
|
||||
PARAM_DEFINE_FLOAT(UAVCAN_ECU_MAXF, 15.0f);
|
||||
|
||||
/**
|
||||
* UAVCAN fuel tank fuel type
|
||||
*
|
||||
* This parameter defines the type of fuel used in the vehicle's fuel tank.
|
||||
*
|
||||
* 0: Unknown
|
||||
* 1: Liquid (e.g., gasoline, diesel)
|
||||
* 2: Gas (e.g., hydrogen, methane, propane)
|
||||
*
|
||||
* @min 0
|
||||
* @max 2
|
||||
* @value 0 Unknown
|
||||
* @value 1 Liquid
|
||||
* @value 2 Gas
|
||||
* @group UAVCAN
|
||||
*/
|
||||
PARAM_DEFINE_INT32(UAVCAN_ECU_FUELT, 1);
|
||||
|
||||
/**
|
||||
* UAVCAN ANTI_COLLISION light operating mode
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user