AP_Logger: add 1e-9 log multiplyer

This commit is contained in:
Iampete1 2022-03-07 00:24:55 +00:00 committed by Andrew Tridgell
parent 717edae9ef
commit 0a0178988d
2 changed files with 2 additions and 0 deletions

View File

@ -101,6 +101,7 @@ const struct MultiplierStructure log_Multipliers[] = {
{ 'E', 1e-5 },
{ 'F', 1e-6 },
{ 'G', 1e-7 },
{ 'I', 1e-9 },
// <leave a gap here, just in case....>
{ '!', 3.6 }, // (ampere*second => milliampere*hour) and (km/h => m/s)
{ '/', 3600 }, // (ampere*second => ampere*hour)

View File

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