FrogPilot conversions

This commit is contained in:
James
2025-12-01 12:00:00 -07:00
parent e49978beff
commit 17a81ac769
2 changed files with 7 additions and 0 deletions
+4
View File
@@ -20,6 +20,10 @@ class CV:
LB_TO_KG = 0.453592
# FrogPilot variables
METER_TO_FOOT = 3.28084
FOOT_TO_METER = 1. / METER_TO_FOOT
CM_TO_INCH = 1. / 2.54
INCH_TO_CM = 1. / CM_TO_INCH
ACCELERATION_DUE_TO_GRAVITY = 9.81 # m/s^2
+3
View File
@@ -38,6 +38,9 @@ const double METER_TO_MILE = KM_TO_MILE / 1000.0;
const double METER_TO_FOOT = 3.28084;
// FrogPilot variables
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;
#define ALIGNED_SIZE(x, align) (((x) + (align)-1) & ~((align)-1))