mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_WheelEncoder: Add missing const in member functions
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
This commit is contained in:
parent
b8360a08c7
commit
7b6f1225ba
@ -202,7 +202,7 @@ void AP_WheelEncoder::update(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// log wheel encoder information
|
// log wheel encoder information
|
||||||
void AP_WheelEncoder::Log_Write()
|
void AP_WheelEncoder::Log_Write() const
|
||||||
{
|
{
|
||||||
// return immediately if no wheel encoders are enabled
|
// return immediately if no wheel encoders are enabled
|
||||||
if (!enabled(0) && !enabled(1)) {
|
if (!enabled(0) && !enabled(1)) {
|
||||||
|
@ -70,7 +70,7 @@ public:
|
|||||||
void update(void);
|
void update(void);
|
||||||
|
|
||||||
// log data to logger
|
// log data to logger
|
||||||
void Log_Write();
|
void Log_Write() const;
|
||||||
|
|
||||||
// return the number of wheel encoder sensor instances
|
// return the number of wheel encoder sensor instances
|
||||||
uint8_t num_sensors(void) const { return num_instances; }
|
uint8_t num_sensors(void) const { return num_instances; }
|
||||||
|
Loading…
Reference in New Issue
Block a user