APM:Libraries
NotifyDevice.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <AP_Common/AP_Common.h>
5 
6 class AP_Notify;
7 
8 class NotifyDevice {
9 public:
10  virtual ~NotifyDevice() {}
11  // init - initialised the device
12  virtual bool init(void) = 0;
13  // update - updates device according to timed_updated. Should be
14  // called at 50Hz
15  virtual void update() = 0;
16 
17  // handle a LED_CONTROL message, by default device ignore message
18  virtual void handle_led_control(mavlink_message_t *msg) {}
19 
20  // handle a PLAY_TUNE message, by default device ignore message
21  virtual void handle_play_tune(mavlink_message_t *msg) {}
22 
23  // this pointer is used to read the parameters relative to devices
25 };
virtual void handle_led_control(mavlink_message_t *msg)
Definition: NotifyDevice.h:18
virtual void handle_play_tune(mavlink_message_t *msg)
Definition: NotifyDevice.h:21
virtual void update()=0
virtual bool init(void)=0
const AP_Notify * pNotify
Definition: NotifyDevice.h:24
Common definitions and utility routines for the ArduPilot libraries.
virtual ~NotifyDevice()
Definition: NotifyDevice.h:10