From c5ecddad92eb245225cd940c99fe512d04678ad1 Mon Sep 17 00:00:00 2001 From: Iampete1 Date: Fri, 15 Mar 2024 15:13:34 +0000 Subject: [PATCH] AP_Logger: add bytes per second unit `B` --- libraries/AP_Logger/LogStructure.h | 1 + libraries/AP_Logger/README.md | 1 + 2 files changed, 2 insertions(+) diff --git a/libraries/AP_Logger/LogStructure.h b/libraries/AP_Logger/LogStructure.h index 9e86ea834d..30ff2c6d9d 100644 --- a/libraries/AP_Logger/LogStructure.h +++ b/libraries/AP_Logger/LogStructure.h @@ -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 diff --git a/libraries/AP_Logger/README.md b/libraries/AP_Logger/README.md index dc42f96294..d049c16f65 100644 --- a/libraries/AP_Logger/README.md +++ b/libraries/AP_Logger/README.md @@ -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|