10 #include "SensorBase.h"
11 #include "PIDSource.h"
12 #include "LiveWindow/LiveWindowSendable.h"
30 static const uint32_t kOversampleBits = 10;
31 static const uint32_t kAverageBits = 0;
33 static constexpr
float kSamplesPerSecond = 50.0;
34 static constexpr
float kCalibrationSampleTime = 5.0;
35 static constexpr
float kDefaultVoltsPerDegreePerSecond = 0.007;
37 Gyro(uint8_t moduleNumber, uint32_t channel);
38 explicit Gyro(uint32_t channel);
45 void SetPIDSourceParameter(PIDSourceParameter pidSource);
52 void StartLiveWindowMode();
53 void StopLiveWindowMode();
54 std::string GetSmartDashboardType();
55 void InitTable(ITable *subTable);
62 float m_voltsPerDegreePerSecond;
64 bool m_channelAllocated;
66 PIDSourceParameter m_pidSource;
void SetSensitivity(float voltsPerDegreePerSecond)
Definition: Gyro.cpp:194
Definition: AnalogModule.h:20
virtual float GetAngle()
Definition: Gyro.cpp:158
virtual ~Gyro()
Definition: Gyro.cpp:141
Definition: SensorBase.h:20
double PIDGet()
Definition: Gyro.cpp:211
virtual void Reset()
Definition: Gyro.cpp:133
Definition: PIDSource.h:15
Gyro(uint8_t moduleNumber, uint32_t channel)
Definition: Gyro.cpp:80
virtual double GetRate()
Definition: Gyro.cpp:180
Definition: AnalogChannel.h:29