[wpilibj] Fix ADIS16448 getRate to return rate instead of angle (#3974)

This commit is contained in:
sciencewhiz
2022-01-29 20:17:57 -08:00
committed by GitHub
parent dd9c92d5bf
commit a8f0f6bb90

View File

@@ -961,11 +961,11 @@ public class ADIS16448_IMU implements AutoCloseable, NTSendable {
public synchronized double getRate() {
switch (m_yaw_axis) {
case kX:
return getGyroAngleX();
return getGyroRateX();
case kY:
return getGyroAngleY();
return getGyroRateY();
case kZ:
return getGyroAngleZ();
return getGyroRateZ();
default:
return 0.0;
}