mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-04 03:11:43 +00:00
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:
@@ -20,20 +20,20 @@ class DigitalInput : public DigitalSource, public LiveWindowSendable
|
||||
public:
|
||||
explicit DigitalInput(uint32_t channel);
|
||||
virtual ~DigitalInput();
|
||||
bool Get();
|
||||
uint32_t GetChannel();
|
||||
bool Get() const;
|
||||
uint32_t GetChannel() const;
|
||||
|
||||
// Digital Source Interface
|
||||
virtual uint32_t GetChannelForRouting();
|
||||
virtual uint32_t GetModuleForRouting();
|
||||
virtual bool GetAnalogTriggerForRouting();
|
||||
virtual uint32_t GetChannelForRouting() const;
|
||||
virtual uint32_t GetModuleForRouting() const;
|
||||
virtual bool GetAnalogTriggerForRouting() const;
|
||||
|
||||
void UpdateTable();
|
||||
void StartLiveWindowMode();
|
||||
void StopLiveWindowMode();
|
||||
std::string GetSmartDashboardType();
|
||||
std::string GetSmartDashboardType() const;
|
||||
void InitTable(ITable *subTable);
|
||||
ITable * GetTable();
|
||||
ITable * GetTable() const;
|
||||
|
||||
private:
|
||||
void InitDigitalInput(uint32_t channel);
|
||||
|
||||
Reference in New Issue
Block a user