mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-28 02:11:43 +00:00
Correctly set smart dashboard type for AnalogGyro and ADXRS450_Gyro.
The GetSmartDashboardType() function defined by GyroBase was returning the correct "Gyro", but the overrides in AnalogGyro and ADXRS450_Gyro were incorrectly changing this, resulting in SmartDashboard not recognizing these as being gyros. Additionally, AddSensor in the C++ AnalogGyro was setting the name to Gyro rather than AnalogGyro. Change-Id: Ib2e31cd2712cc2bc26c8082ed760175d0ee80fb6
This commit is contained in:
@@ -151,7 +151,3 @@ float ADXRS450_Gyro::GetAngle() const {
|
||||
double ADXRS450_Gyro::GetRate() const {
|
||||
return (double)m_spi.GetAccumulatorLastValue() * kDegreePerSecondPerLSB;
|
||||
}
|
||||
|
||||
std::string ADXRS450_Gyro::GetSmartDashboardType() const {
|
||||
return "ADXRS450_Gyro";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user