mirror of
https://github.com/okalachev/flix.git
synced 2025-08-17 09:06:11 +00:00
Transfer gyro low pass filter to estimate.ino
Separate raw gyro data and filtered rates to different variables
This commit is contained in:
@@ -26,6 +26,7 @@ float motors[4];
|
||||
int16_t channels[16]; // raw rc channels
|
||||
float controls[RC_CHANNELS];
|
||||
Vector acc;
|
||||
Vector gyro;
|
||||
Vector rates;
|
||||
Quaternion attitude;
|
||||
|
||||
|
@@ -64,7 +64,7 @@ public:
|
||||
step();
|
||||
|
||||
// read imu
|
||||
rates = flu2frd(imu->AngularVelocity());
|
||||
gyro = flu2frd(imu->AngularVelocity());
|
||||
acc = this->accFilter.update(flu2frd(imu->LinearAcceleration()));
|
||||
|
||||
// read rc
|
||||
|
Reference in New Issue
Block a user