AP_Notify: add override keyword where required

This commit is contained in:
Peter Barker 2018-11-07 22:01:17 +11:00 committed by Andrew Tridgell
parent be53782ef1
commit 344d6b938c
7 changed files with 14 additions and 14 deletions

View File

@ -26,10 +26,10 @@ class AP_BoardLED: public NotifyDevice
{
public:
// initialise the LED driver
bool init(void);
bool init(void) override;
// should be called at 50Hz
void update(void);
void update(void) override;
private:
// counter incremented at 50Hz

View File

@ -28,10 +28,10 @@ class AP_BoardLED2: public NotifyDevice
{
public:
// initialise the LED driver
bool init(void);
bool init(void) override;
// should be called at 50Hz
void update(void);
void update(void) override;
private:
// counter incremented at 50Hz

View File

@ -30,10 +30,10 @@ public:
Buzzer() {}
/// init - initialise the buzzer
bool init(void);
bool init(void) override;
/// update - updates buzzer according to timed_updated. Should be called at 50Hz
void update();
void update() override;
/// on - turns the buzzer on or off
void on(bool on_off);

View File

@ -13,8 +13,8 @@ class Display: public NotifyDevice {
public:
friend class Display_Backend;
bool init(void);
void update();
bool init(void) override;
void update() override;
private:
void draw_char(uint16_t x, uint16_t y, const char c);

View File

@ -31,10 +31,10 @@ public:
ExternalLED() : _pattern(NONE) {}
// initialise the LED driver
bool init(void);
bool init(void) override;
// should be called at 50Hz
void update(void);
void update(void) override;
private:

View File

@ -27,14 +27,14 @@ public:
RGBLed(uint8_t led_off, uint8_t led_bright, uint8_t led_medium, uint8_t led_dim);
// init - initialised the LED
virtual bool init(void);
virtual bool init(void) override;
// set_rgb - set color as a combination of red, green and blue levels from 0 ~ 15
virtual void set_rgb(uint8_t red, uint8_t green, uint8_t blue);
// update - updates led according to timed_updated. Should be
// called at 50Hz
virtual void update();
virtual void update() override;
// handle LED control, only used when LED_OVERRIDE=1
virtual void handle_led_control(mavlink_message_t *msg) override;

View File

@ -30,10 +30,10 @@ public:
bool init(void) override;
/// update - updates led according to timed_updated. Should be called at 50Hz
void update();
void update() override;
// handle a PLAY_TUNE message
void handle_play_tune(mavlink_message_t *msg);
void handle_play_tune(mavlink_message_t *msg) override;
private:
/// play_tune - play one of the pre-defined tunes