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: public:
// initialise the LED driver // initialise the LED driver
bool init(void); bool init(void) override;
// should be called at 50Hz // should be called at 50Hz
void update(void); void update(void) override;
private: private:
// counter incremented at 50Hz // counter incremented at 50Hz

View File

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

View File

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

View File

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

View File

@ -31,10 +31,10 @@ public:
ExternalLED() : _pattern(NONE) {} ExternalLED() : _pattern(NONE) {}
// initialise the LED driver // initialise the LED driver
bool init(void); bool init(void) override;
// should be called at 50Hz // should be called at 50Hz
void update(void); void update(void) override;
private: 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); RGBLed(uint8_t led_off, uint8_t led_bright, uint8_t led_medium, uint8_t led_dim);
// init - initialised the LED // 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 // 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); virtual void set_rgb(uint8_t red, uint8_t green, uint8_t blue);
// update - updates led according to timed_updated. Should be // update - updates led according to timed_updated. Should be
// called at 50Hz // called at 50Hz
virtual void update(); virtual void update() override;
// handle LED control, only used when LED_OVERRIDE=1 // handle LED control, only used when LED_OVERRIDE=1
virtual void handle_led_control(mavlink_message_t *msg) override; virtual void handle_led_control(mavlink_message_t *msg) override;

View File

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