mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-25 01:41: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:
@@ -76,7 +76,7 @@ void AnalogOutput::SetVoltage(float voltage) {
|
||||
*
|
||||
* @return The value in Volts, from 0.0 to +5.0
|
||||
*/
|
||||
float AnalogOutput::GetVoltage() {
|
||||
float AnalogOutput::GetVoltage() const {
|
||||
int32_t status = 0;
|
||||
float voltage = getAnalogOutput(m_port, &status);
|
||||
|
||||
@@ -97,7 +97,7 @@ void AnalogOutput::StartLiveWindowMode() {
|
||||
void AnalogOutput::StopLiveWindowMode() {
|
||||
}
|
||||
|
||||
std::string AnalogOutput::GetSmartDashboardType() {
|
||||
std::string AnalogOutput::GetSmartDashboardType() const {
|
||||
return "Analog Output";
|
||||
}
|
||||
|
||||
@@ -106,6 +106,6 @@ void AnalogOutput::InitTable(ITable *subTable) {
|
||||
UpdateTable();
|
||||
}
|
||||
|
||||
ITable *AnalogOutput::GetTable() {
|
||||
ITable *AnalogOutput::GetTable() const {
|
||||
return m_table;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user