Move ONE_G definition to flix.ino

This commit is contained in:
Oleg Kalachev 2024-12-23 02:37:03 +03:00
parent 3cc3014ca0
commit 7533a9cbfa
4 changed files with 4 additions and 3 deletions

View File

@ -7,7 +7,6 @@
#include "vector.h"
#include "lpf.h"
#define ONE_G 9.807f
#define WEIGHT_ACC 0.5f
#define RATES_LFP_ALPHA 0.2 // cutoff frequency ~ 40 Hz

View File

@ -23,6 +23,8 @@
#define MOTOR_FRONT_RIGHT 2
#define MOTOR_FRONT_LEFT 3
#define ONE_G 9.80665
float t = NAN; // current step time, s
float dt; // time delta from previous step, s
float loopRate; // loop rate, Hz

View File

@ -6,8 +6,6 @@
#include <SPI.h>
#include <MPU9250.h>
#define ONE_G 9.80665
// NOTE: use 'ca' command to calibrate the accelerometer and put the values here
Vector accBias(0, 0, 0);
Vector accScale(1, 1, 1);

View File

@ -19,6 +19,8 @@
#define WIFI_ENABLED 1
#define ONE_G 9.80665
float t = NAN;
float dt;
float loopRate;