mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-30 12:38:33 -04:00
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_Common.h>
|
||||||
#include <AP_HAL.h>
|
#include <AP_HAL.h>
|
||||||
#include "Led.h"
|
#include "NotifyDevice.h"
|
||||||
|
|
||||||
#define HIGH 1
|
#define HIGH 1
|
||||||
#define LOW 0
|
#define LOW 0
|
||||||
@ -71,7 +71,7 @@
|
|||||||
#error "Unknown board type in AP_Notify"
|
#error "Unknown board type in AP_Notify"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
class AP_BoardLED: public Led
|
class AP_BoardLED: public NotifyDevice
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
// initialise the LED driver
|
// initialise the LED driver
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
#include <AP_Common.h>
|
#include <AP_Common.h>
|
||||||
#include <AP_HAL.h>
|
#include <AP_HAL.h>
|
||||||
#include <AP_Param.h>
|
#include <AP_Param.h>
|
||||||
#include "Led.h"
|
#include "NotifyDevice.h"
|
||||||
|
|
||||||
#if CONFIG_HAL_BOARD == HAL_BOARD_APM2
|
#if CONFIG_HAL_BOARD == HAL_BOARD_APM2
|
||||||
#define EXTERNAL_LED_ARMED 61 // Armed LED - AN7
|
#define EXTERNAL_LED_ARMED 61 // Armed LED - AN7
|
||||||
@ -45,7 +45,7 @@
|
|||||||
#define EXTERNAL_LED_MOTOR2 0
|
#define EXTERNAL_LED_MOTOR2 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
class ExternalLED: public Led
|
class ExternalLED: public NotifyDevice
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
// constructor
|
// constructor
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
#include <AP_HAL.h>
|
#include <AP_HAL.h>
|
||||||
#include <AP_GPS.h>
|
#include <AP_GPS.h>
|
||||||
#include "Led.h"
|
#include "RGBLed.h"
|
||||||
#include "AP_Notify.h"
|
#include "AP_Notify.h"
|
||||||
|
|
||||||
extern const AP_HAL::HAL& hal;
|
extern const AP_HAL::HAL& hal;
|
||||||
|
@ -22,9 +22,9 @@
|
|||||||
#define __RGBLED_H__
|
#define __RGBLED_H__
|
||||||
|
|
||||||
#include <AP_HAL.h>
|
#include <AP_HAL.h>
|
||||||
#include "Led.h"
|
#include "NotifyDevice.h"
|
||||||
|
|
||||||
class RGBLed: public Led {
|
class RGBLed: public NotifyDevice {
|
||||||
public:
|
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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user