AP_Logger: add new unit `t` for torque in N.m

This commit is contained in:
Iampete1 2024-11-16 11:10:50 +00:00 committed by Andrew Tridgell
parent 5503ac204e
commit 2863dcfb94
2 changed files with 2 additions and 0 deletions

View File

@ -67,6 +67,7 @@ const struct UnitStructure log_Units[] = {
{ '%', "%" }, // percent
{ 'S', "satellites" }, // number of satellites
{ 's', "s" }, // seconds
{ 't', "N.m" }, // Newton meters, torque
{ 'q', "rpm" }, // rounds per minute. Not SI, but sometimes more intuitive than Hertz
{ 'r', "rad" }, // radians
{ 'U', "deglongitude" }, // degrees of longitude

View File

@ -68,6 +68,7 @@ Please keep the names consistent with Tools/autotest/param_metadata/param.py:33
| 's' | "s" | seconds|
| 'q' | "rpm" | revolutions per minute| Not an SI unit, but sometimes more intuitive than Hertz|
| 'r' | "rad" | radians|
| 't' | "N.m" | Newton meters | torque |
| 'U' | "deglongitude" | degrees of longitude|
| 'u' | "ppm" | pulses per minute|
| 'v' | "V" | Volt|