diff --git a/libraries/AP_Logger/LogStructure.h b/libraries/AP_Logger/LogStructure.h index f42eb1c809..0445134f37 100644 --- a/libraries/AP_Logger/LogStructure.h +++ b/libraries/AP_Logger/LogStructure.h @@ -73,7 +73,8 @@ const struct UnitStructure log_Units[] = { { 'v', "V" }, // Volt { 'P', "Pa" }, // Pascal { 'w', "Ohm" }, // Ohm - { 'W', "Watt" }, // Watt + { 'W', "Watt" }, // Watt + { 'X', "W.h" }, // Watt hour { 'Y', "us" }, // pulse width modulation in microseconds { 'z', "Hz" }, // Hertz { '#', "instance" } // (e.g.)Sensor instance number diff --git a/libraries/AP_Logger/README.md b/libraries/AP_Logger/README.md index 9649ea776b..f1afd1ec9b 100644 --- a/libraries/AP_Logger/README.md +++ b/libraries/AP_Logger/README.md @@ -71,6 +71,8 @@ Please keep the names consistent with Tools/autotest/param_metadata/param.py:33 | 'v' | "V" | Volt| | 'P' | "Pa" | Pascal| | 'w' | "Ohm" | Ohm| +| 'W' | "W" | watt | +| 'X' | "W.h" | watt hour | | 'Y' | "us" | pulse width modulation in microseconds| | 'z' | "Hz" | Hertz| | '#' | "instance" | (e.g.)Sensor instance number|