src: drivers: uavcan: allow to set the fuel type through a parameter

This commit is contained in:
Nuno Marques
2024-06-17 12:58:46 -07:00
parent 4067ff0a59
commit cec0d7c66b
3 changed files with 25 additions and 2 deletions
+18
View File
@@ -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
*