Improve const correctness.

See https://usfirst.collab.net/sf/tracker/do/viewArtifact/projects.wpilib/tracker.4_defects/artf4148

Change-Id: I47b0d5a91fd49e47e2c7348b0705e998ec815682
This commit is contained in:
Tyler Veness
2015-06-19 17:23:54 -07:00
parent c6b790cadd
commit 5598445a67
172 changed files with 1165 additions and 1140 deletions

View File

@@ -30,43 +30,43 @@ public:
explicit AnalogInput(uint32_t channel);
virtual ~AnalogInput();
int16_t GetValue();
int32_t GetAverageValue();
int16_t GetValue() const;
int32_t GetAverageValue() const;
float GetVoltage();
float GetAverageVoltage();
float GetVoltage() const;
float GetAverageVoltage() const;
uint32_t GetChannel();
uint32_t GetChannel() const;
void SetAverageBits(uint32_t bits);
uint32_t GetAverageBits();
uint32_t GetAverageBits() const;
void SetOversampleBits(uint32_t bits);
uint32_t GetOversampleBits();
uint32_t GetOversampleBits() const;
uint32_t GetLSBWeight();
int32_t GetOffset();
uint32_t GetLSBWeight() const;
int32_t GetOffset() const;
bool IsAccumulatorChannel();
bool IsAccumulatorChannel() const;
void InitAccumulator();
void SetAccumulatorInitialValue(int64_t value);
void ResetAccumulator();
void SetAccumulatorCenter(int32_t center);
void SetAccumulatorDeadband(int32_t deadband);
int64_t GetAccumulatorValue();
uint32_t GetAccumulatorCount();
void GetAccumulatorOutput(int64_t *value, uint32_t *count);
int64_t GetAccumulatorValue() const;
uint32_t GetAccumulatorCount() const;
void GetAccumulatorOutput(int64_t *value, uint32_t *count) const;
static void SetSampleRate(float samplesPerSecond);
static float GetSampleRate();
double PIDGet();
double PIDGet() const override;
void UpdateTable();
void StartLiveWindowMode();
void StopLiveWindowMode();
std::string GetSmartDashboardType();
void InitTable(ITable *subTable);
ITable * GetTable();
void UpdateTable() override;
void StartLiveWindowMode() override;
void StopLiveWindowMode() override;
std::string GetSmartDashboardType() const override;
void InitTable(ITable *subTable) override;
ITable * GetTable() const override;
private:
void InitAnalogInput(uint32_t channel);