AP_Math: Add kg/m^3 to g/cm^3 conversion define

This commit is contained in:
Reilly Callaway 2022-03-30 14:07:15 +11:00 committed by Randy Mackay
parent a95e4def52
commit d3ee4ebf64
1 changed files with 3 additions and 0 deletions

View File

@ -117,3 +117,6 @@ static const double WGS84_E = (sqrt(2 * WGS84_F - WGS84_F * WGS84_F));
// Amps microseconds to milliamp hours // Amps microseconds to milliamp hours
#define AUS_TO_MAH 0.0000002778f #define AUS_TO_MAH 0.0000002778f
// kg/m^3 to g/cm^3
#define KG_PER_M3_TO_G_PER_CM3(x) (0.001 * x)