AP_Logger: add bytes per second unit `B`

This commit is contained in:
Iampete1 2024-03-15 15:13:34 +00:00 committed by Andrew Tridgell
parent 06efeb20cd
commit c5ecddad92
2 changed files with 2 additions and 0 deletions

View File

@ -48,6 +48,7 @@ const struct UnitStructure log_Units[] = {
{ 'a', "Ah" }, // Ampere hours
{ 'd', "deg" }, // of the angular variety, -180 to 180
{ 'b', "B" }, // bytes
{ 'B', "B/s" }, // bytes per second
{ 'k', "deg/s" }, // degrees per second. Degrees are NOT SI, but is some situations more user-friendly than radians
{ 'D', "deglatitude" }, // degrees of latitude
{ 'e', "deg/s/s" }, // degrees per second per second. Degrees are NOT SI, but is some situations more user-friendly than radians

View File

@ -46,6 +46,7 @@ Please keep the names consistent with Tools/autotest/param_metadata/param.py:33
| 'A' | "A" | Ampere|
| 'd' | "deg" | of the angular variety | -180 to 180|
| 'b' | "B" | bytes|
| 'B' | "B/s" | bytes per second |
| 'k' | "deg/s" | degrees per second | Not an SI unit, but in some situations more user-friendly than radians per second|
| 'D' | "deglatitude" | degrees of latitude|
| 'e' | "deg/s/s" | degrees per second per second | Not an SI unit, but in some situations more user-friendly than radians per second^2|