From 0a0178988de37079a52da936323a900c7625093f Mon Sep 17 00:00:00 2001 From: Iampete1 Date: Mon, 7 Mar 2022 00:24:55 +0000 Subject: [PATCH] AP_Logger: add 1e-9 log multiplyer --- 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 46a9000287..a106cdee07 100644 --- a/libraries/AP_Logger/LogStructure.h +++ b/libraries/AP_Logger/LogStructure.h @@ -101,6 +101,7 @@ const struct MultiplierStructure log_Multipliers[] = { { 'E', 1e-5 }, { 'F', 1e-6 }, { 'G', 1e-7 }, + { 'I', 1e-9 }, // { '!', 3.6 }, // (ampere*second => milliampere*hour) and (km/h => m/s) { '/', 3600 }, // (ampere*second => ampere*hour) diff --git a/libraries/AP_Logger/README.md b/libraries/AP_Logger/README.md index f1afd1ec9b..dc42f96294 100644 --- a/libraries/AP_Logger/README.md +++ b/libraries/AP_Logger/README.md @@ -100,5 +100,6 @@ tl;dr a GCS shouldn't/mustn't infer any scaling from the unit name | 'E' | 1e-5 || | 'F' | 1e-6 || | 'G' | 1e-7 || +| 'I' | 1e-9 || | '!' | 3.6 | (milliampere \* hour => ampere \* second) and (km/h => m/s)| | '/' | 3600 | (ampere \* hour => ampere \* second)|