FrogPilot setup - Conversions

This commit is contained in:
FrogAi 2024-05-09 17:52:25 -07:00
parent 7965a1eaa7
commit 75cb879e67
2 changed files with 7 additions and 0 deletions

View File

@ -8,6 +8,10 @@ class Conversions:
KPH_TO_MS = 1. / MS_TO_KPH KPH_TO_MS = 1. / MS_TO_KPH
MS_TO_MPH = MS_TO_KPH * KPH_TO_MPH MS_TO_MPH = MS_TO_KPH * KPH_TO_MPH
MPH_TO_MS = MPH_TO_KPH * KPH_TO_MS MPH_TO_MS = MPH_TO_KPH * KPH_TO_MS
METER_TO_FOOT = 3.28084
FOOT_TO_METER = 1 / METER_TO_FOOT
CM_TO_INCH = METER_TO_FOOT / 100.0 * 12.0;
INCH_TO_CM = 1.0 / CM_TO_INCH;
MS_TO_KNOTS = 1.9438 MS_TO_KNOTS = 1.9438
KNOTS_TO_MS = 1. / MS_TO_KNOTS KNOTS_TO_MS = 1. / MS_TO_KNOTS

View File

@ -37,6 +37,9 @@ const double MS_TO_KPH = 3.6;
const double MS_TO_MPH = MS_TO_KPH * KM_TO_MILE; const double MS_TO_MPH = MS_TO_KPH * KM_TO_MILE;
const double METER_TO_MILE = KM_TO_MILE / 1000.0; const double METER_TO_MILE = KM_TO_MILE / 1000.0;
const double METER_TO_FOOT = 3.28084; const double METER_TO_FOOT = 3.28084;
const double FOOT_TO_METER = 1 / METER_TO_FOOT;
const double CM_TO_INCH = 1 / 2.54;
const double INCH_TO_CM = 1 / CM_TO_INCH;
namespace util { namespace util {