From 1fb3734ee4bd060c3266ea13327eb8140737a98a Mon Sep 17 00:00:00 2001 From: Freek van Tienen Date: Wed, 18 Sep 2024 10:29:20 +0200 Subject: [PATCH 1/2] Add fuelcell message --- uavcan/equipment/fuelcell/1141.Status.uavcan | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 uavcan/equipment/fuelcell/1141.Status.uavcan diff --git a/uavcan/equipment/fuelcell/1141.Status.uavcan b/uavcan/equipment/fuelcell/1141.Status.uavcan new file mode 100644 index 0000000..3773a00 --- /dev/null +++ b/uavcan/equipment/fuelcell/1141.Status.uavcan @@ -0,0 +1,14 @@ +# +# Fuelcell Status +# + +uint7 tank_pressure # percentage +uint8 regulated_pressure # *100 + +uint10 battery_voltage # decivolt *10 +uint14 output_power +uint13 spm_power +int16 battery_power +uint4 psu_state +uint8 error_code +uint8 sub_code From afa7c69a9214f70de63e9746f493441355c9ee8f Mon Sep 17 00:00:00 2001 From: Christophe De Wagter Date: Thu, 26 Sep 2024 11:24:10 +0200 Subject: [PATCH 2/2] Comments --- uavcan/equipment/fuelcell/1141.Status.uavcan | 43 ++++++++++++++++++-- 1 file changed, 39 insertions(+), 4 deletions(-) diff --git a/uavcan/equipment/fuelcell/1141.Status.uavcan b/uavcan/equipment/fuelcell/1141.Status.uavcan index 3773a00..7047b39 100644 --- a/uavcan/equipment/fuelcell/1141.Status.uavcan +++ b/uavcan/equipment/fuelcell/1141.Status.uavcan @@ -1,14 +1,49 @@ # -# Fuelcell Status +# Fuelcell Status Reports # -uint7 tank_pressure # percentage -uint8 regulated_pressure # *100 -uint10 battery_voltage # decivolt *10 +# +# Cylinder Pressure in Percentage of Maximum: 0-100 percent +# (7-bit) - precent +# +uint7 tank_pressure + +# +# Regulator Output Pressure - Fuel-cell entry pressure: 0.00 to 2.55 Bar +# (8-bit) - centiBar +# float pressure = (regulated_pressure / 100.0) Bar +uint8 regulated_pressure + +# +# Companion Battery Voltage: 0.0 Volt to 102.3 Volt +# (10-bit) - deciVolt +# +uint10 battery_voltage + +# +# Output Power: 0 - 16383 Watt +# (14-bit) - Watt +# uint14 output_power + +# +# SPM Power: 0 - 8191 Watt +# (13-bit) - Watt +# uint13 spm_power + +# +# Companion Battery Power: -32768 to 32767 Watt +# (signed 16-bit) - Watt +# Negative = discharge, positive = charge +# int16 battery_power + +# +# State & Error codes +# Manufacturer Dependent State and Error Codes +# uint4 psu_state uint8 error_code uint8 sub_code