AP_WheelEncoder: Add missing const in member functions

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
This commit is contained in:
Patrick José Pereira 2021-02-01 13:26:35 -03:00 committed by Andrew Tridgell
parent b8360a08c7
commit 7b6f1225ba
2 changed files with 2 additions and 2 deletions

View File

@ -202,7 +202,7 @@ void AP_WheelEncoder::update(void)
}
// log wheel encoder information
void AP_WheelEncoder::Log_Write()
void AP_WheelEncoder::Log_Write() const
{
// return immediately if no wheel encoders are enabled
if (!enabled(0) && !enabled(1)) {

View File

@ -70,7 +70,7 @@ public:
void update(void);
// log data to logger
void Log_Write();
void Log_Write() const;
// return the number of wheel encoder sensor instances
uint8_t num_sensors(void) const { return num_instances; }