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:
Nuno Marques
2024-05-15 16:06:48 +01:00
parent 954225a5c0
commit a8cb5a7715
13 changed files with 323 additions and 1 deletions
+1
View File
@@ -98,6 +98,7 @@ set(msg_files
FollowTarget.msg
FollowTargetEstimator.msg
FollowTargetStatus.msg
FuelTankStatus.msg
GeneratorStatus.msg
GeofenceResult.msg
GeofenceStatus.msg
+17
View File
@@ -0,0 +1,17 @@
uint64 timestamp # time since system start (microseconds)
float32 maximum_fuel_capacity # maximum fuel capacity
float32 consumed_fuel # consumed fuel, NaN if unavailable
float32 fuel_consumption_rate # fuel consumption rate
uint8 percent_remaining # percentage of remaining fuel
float32 remaining_fuel # remaining fuel
uint8 fuel_tank_id # identifier for the fuel tank
uint32 fuel_type # type of fuel based on MAV_FUEL_TYPE enum
uint8 MAV_FUEL_TYPE_UNKNOWN = 0 # fuel type not specified. Fuel levels are normalized (i.e., maximum is 1, and other levels are relative to 1).
uint8 MAV_FUEL_TYPE_LIQUID = 1 # represents generic liquid fuels, such as gasoline or diesel. Fuel levels are measured in millilitres (ml), and flow rates in millilitres per second (ml/s).
uint8 MAV_FUEL_TYPE_GAS = 2 # represents a gas fuel, such as hydrogen, methane, or propane. Fuel levels are in kilo-Pascal (kPa), and flow rates are in milliliters per second (ml/s).
float32 temperature # fuel temperature in Kelvin, NaN if not measured