mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-27 02:01:42 +00:00
Improve ADXRS450 error detection.
Ensure the POR, PWR, and CST error bits are not set when reading the sample. Reported by: Jared Russell, Austin Schuh Change-Id: Ib38178d6b51880480aee86e13c16f9ba89a80693
This commit is contained in:
committed by
Gerrit Code Review
parent
e852547344
commit
5904314a75
@@ -74,7 +74,7 @@ public class ADXRS450_Gyro extends GyroBase implements Gyro, PIDSource, LiveWind
|
||||
return;
|
||||
}
|
||||
|
||||
m_spi.initAccumulator(kSamplePeriod, 0x20000000, 4, 0x0c000000, 0x04000000,
|
||||
m_spi.initAccumulator(kSamplePeriod, 0x20000000, 4, 0x0c00000e, 0x04000000,
|
||||
10, 16, true, true);
|
||||
|
||||
calibrate();
|
||||
|
||||
Reference in New Issue
Block a user