Notify: remove reliance on Led class
This commit is contained in:
parent
860e4b1ce2
commit
352b52d73f
@ -20,7 +20,7 @@
|
||||
|
||||
#include <AP_Common.h>
|
||||
#include <AP_HAL.h>
|
||||
#include "Led.h"
|
||||
#include "NotifyDevice.h"
|
||||
|
||||
#define HIGH 1
|
||||
#define LOW 0
|
||||
@ -71,7 +71,7 @@
|
||||
#error "Unknown board type in AP_Notify"
|
||||
#endif
|
||||
|
||||
class AP_BoardLED: public Led
|
||||
class AP_BoardLED: public NotifyDevice
|
||||
{
|
||||
public:
|
||||
// initialise the LED driver
|
||||
|
@ -21,7 +21,7 @@
|
||||
#include <AP_Common.h>
|
||||
#include <AP_HAL.h>
|
||||
#include <AP_Param.h>
|
||||
#include "Led.h"
|
||||
#include "NotifyDevice.h"
|
||||
|
||||
#if CONFIG_HAL_BOARD == HAL_BOARD_APM2
|
||||
#define EXTERNAL_LED_ARMED 61 // Armed LED - AN7
|
||||
@ -45,7 +45,7 @@
|
||||
#define EXTERNAL_LED_MOTOR2 0
|
||||
#endif
|
||||
|
||||
class ExternalLED: public Led
|
||||
class ExternalLED: public NotifyDevice
|
||||
{
|
||||
public:
|
||||
// constructor
|
||||
|
@ -18,7 +18,7 @@
|
||||
|
||||
#include <AP_HAL.h>
|
||||
#include <AP_GPS.h>
|
||||
#include "Led.h"
|
||||
#include "RGBLed.h"
|
||||
#include "AP_Notify.h"
|
||||
|
||||
extern const AP_HAL::HAL& hal;
|
||||
|
@ -22,9 +22,9 @@
|
||||
#define __RGBLED_H__
|
||||
|
||||
#include <AP_HAL.h>
|
||||
#include "Led.h"
|
||||
#include "NotifyDevice.h"
|
||||
|
||||
class RGBLed: public Led {
|
||||
class RGBLed: public NotifyDevice {
|
||||
public:
|
||||
RGBLed(uint8_t led_off, uint8_t led_bright, uint8_t led_medium, uint8_t led_dim);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user