mirror of
https://github.com/okalachev/flix.git
synced 2026-08-16 00:38:56 +00:00
Configure imu using parameters instead of editing the source code
Choose the model and optionally custom pin numbers.
This commit is contained in:
@@ -21,6 +21,9 @@ extern float motors[4];
|
||||
Vector gyro, acc, imuRotation;
|
||||
Vector accBias, gyroBias, accScale(1, 1, 1);
|
||||
LowPassFilter<Vector> gyroBiasFilter(0);
|
||||
int imuModel = 1, imuBus = 0;
|
||||
int imuSckPin = 0, imuMisoPin = 0, imuMosiPin = 0, imuCsPin = -1, imuIntPin = -1;
|
||||
int imuSdaPin = 0, imuSclPin = 0;
|
||||
|
||||
// declarations
|
||||
void step();
|
||||
|
||||
Reference in New Issue
Block a user