mirror of
https://github.com/okalachev/flix.git
synced 2025-07-27 09:39:33 +00:00
Move ONE_G definition to flix.ino
This commit is contained in:
parent
3cc3014ca0
commit
7533a9cbfa
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
|
@ -19,6 +19,8 @@
|
||||
|
||||
#define WIFI_ENABLED 1
|
||||
|
||||
#define ONE_G 9.80665
|
||||
|
||||
float t = NAN;
|
||||
float dt;
|
||||
float loopRate;
|
||||
|
Loading…
x
Reference in New Issue
Block a user