mirror of https://github.com/ArduPilot/ardupilot
Notify: add OreoLED to PX4
This commit is contained in:
parent
ab96e98815
commit
b8ef765b3e
|
@ -24,7 +24,8 @@ struct AP_Notify::notify_events_type AP_Notify::events;
|
|||
AP_BoardLED boardled;
|
||||
ToshibaLED_PX4 toshibaled;
|
||||
ToneAlarm_PX4 tonealarm;
|
||||
NotifyDevice *AP_Notify::_devices[CONFIG_NOTIFY_DEVICES_COUNT] = {&boardled, &toshibaled, &tonealarm};
|
||||
OreoLED_PX4 oreoled;
|
||||
NotifyDevice *AP_Notify::_devices[CONFIG_NOTIFY_DEVICES_COUNT] = {&boardled, &toshibaled, &tonealarm, &oreoled};
|
||||
#elif CONFIG_HAL_BOARD == HAL_BOARD_APM1 || CONFIG_HAL_BOARD == HAL_BOARD_APM2
|
||||
AP_BoardLED boardled;
|
||||
ExternalLED externalled;
|
||||
|
|
|
@ -29,9 +29,10 @@
|
|||
#include <ExternalLED.h>
|
||||
#include <Buzzer.h>
|
||||
#include <VRBoard_LED.h>
|
||||
#include <OreoLED_PX4.h>
|
||||
|
||||
#if CONFIG_HAL_BOARD == HAL_BOARD_PX4
|
||||
#define CONFIG_NOTIFY_DEVICES_COUNT 3
|
||||
#define CONFIG_NOTIFY_DEVICES_COUNT 4
|
||||
#elif CONFIG_HAL_BOARD == HAL_BOARD_APM1 || CONFIG_HAL_BOARD == HAL_BOARD_APM2
|
||||
#define CONFIG_NOTIFY_DEVICES_COUNT 3
|
||||
#elif CONFIG_HAL_BOARD == HAL_BOARD_VRBRAIN
|
||||
|
|
Loading…
Reference in New Issue