mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-02 14:13:42 -04:00
3ca7429594
This commit changes the way libraries headers are included in source files: - If the header is in the same directory the source belongs to, so the notation '#include ""' is used with the path relative to the directory containing the source. - If the header is outside the directory containing the source, then we use the notation '#include <>' with the path relative to libraries folder. Some of the advantages of such approach: - Only one search path for libraries headers. - OSs like Windows may have a better lookup time.
20 lines
523 B
C++
20 lines
523 B
C++
#ifndef __NOTIFYDEVICE_H__
|
|
#define __NOTIFYDEVICE_H__
|
|
|
|
#include <AP_Common/AP_Common.h>
|
|
#include <GCS_MAVLink/GCS_MAVLink.h>
|
|
|
|
class NotifyDevice {
|
|
public:
|
|
virtual ~NotifyDevice() {}
|
|
// init - initialised the device
|
|
virtual bool init(void) = 0;
|
|
// update - updates device according to timed_updated. Should be
|
|
// called at 50Hz
|
|
virtual void update() = 0;
|
|
// handle a LED_CONTROL message, by default device ignore message
|
|
virtual void handle_led_control(mavlink_message_t *msg) {}
|
|
};
|
|
|
|
#endif
|