Skip to content

Commit

Permalink
AP_Math: Add AUS_TO_MAH definition
Browse files Browse the repository at this point in the history
  • Loading branch information
arBalasquide authored and tridge committed Dec 21, 2021
1 parent 10b4eeb commit fd3c83c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libraries/AP_Math/definitions.h
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,6 @@ static const double WGS84_E = (sqrt(2 * WGS84_F - WGS84_F * WGS84_F));
// Convert amps milliseconds to milliamp hours
// Amp.millisec to milliAmp.hour = 1/1E3(ms->s) * 1/3600(s->hr) * 1000(A->mA)
#define AMS_TO_MAH 0.000277777778f

// Amps microseconds to milliamp hours
#define AUS_TO_MAH 0.0000002778f

0 comments on commit fd3c83c

Please sign in to comment.