If Gyro errors > 100 we stop spending time with I2C
This commit is contained in:
+2
-1
@@ -36,12 +36,13 @@ class GyroBuffer {
|
||||
uint8_t index;
|
||||
|
||||
public:
|
||||
void read(int32_t values[GYRO_VALUES_COUNT]);
|
||||
int read(int32_t values[GYRO_VALUES_COUNT]);
|
||||
};
|
||||
|
||||
class Gyro {
|
||||
protected:
|
||||
GyroBuffer gyroBuffer;
|
||||
uint8_t errors = 0;
|
||||
|
||||
public:
|
||||
int16_t outputs[2];
|
||||
|
||||
Reference in New Issue
Block a user