AP_Logger: add Wh units

This commit is contained in:
Iampete1 2021-06-03 23:57:18 +01:00 committed by Andrew Tridgell
parent be1cca1368
commit c5dba34e4c
2 changed files with 4 additions and 1 deletions

View File

@ -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

View File

@ -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|