diff --git a/libraries/AP_Notify/AP_Notify.cpp b/libraries/AP_Notify/AP_Notify.cpp index ade9b83e4f..1948577c76 100644 --- a/libraries/AP_Notify/AP_Notify.cpp +++ b/libraries/AP_Notify/AP_Notify.cpp @@ -87,15 +87,16 @@ struct AP_Notify::notify_events_type AP_Notify::events; #endif #elif CONFIG_HAL_BOARD == HAL_BOARD_VRBRAIN - Buzzer buzzer; + ToneAlarm_PX4 tonealarm; #if CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_VRBRAIN_V45 AP_BoardLED boardled; #else VRBoard_LED boardled; #endif - ToshibaLED_I2C toshibaled; + ToshibaLED_PX4 toshibaled; ExternalLED externalled; - NotifyDevice *AP_Notify::_devices[] = {&boardled, &toshibaled, &externalled, &buzzer}; + NotifyDevice *AP_Notify::_devices[] = {&boardled, &toshibaled, &externalled, &tonealarm}; + #elif CONFIG_HAL_BOARD == HAL_BOARD_LINUX #if CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_NAVIO NavioLED_I2C navioled; diff --git a/libraries/AP_Notify/ToneAlarm_PX4.cpp b/libraries/AP_Notify/ToneAlarm_PX4.cpp index b64526360e..dfc3263b35 100644 --- a/libraries/AP_Notify/ToneAlarm_PX4.cpp +++ b/libraries/AP_Notify/ToneAlarm_PX4.cpp @@ -18,7 +18,7 @@ #include -#if CONFIG_HAL_BOARD == HAL_BOARD_PX4 +#if CONFIG_HAL_BOARD == HAL_BOARD_PX4 || CONFIG_HAL_BOARD == HAL_BOARD_VRBRAIN #include "ToneAlarm_PX4.h" #include "AP_Notify.h" diff --git a/libraries/AP_Notify/ToshibaLED_PX4.cpp b/libraries/AP_Notify/ToshibaLED_PX4.cpp index d707ff3779..545c6fefcc 100644 --- a/libraries/AP_Notify/ToshibaLED_PX4.cpp +++ b/libraries/AP_Notify/ToshibaLED_PX4.cpp @@ -18,7 +18,7 @@ #include -#if CONFIG_HAL_BOARD == HAL_BOARD_PX4 +#if CONFIG_HAL_BOARD == HAL_BOARD_PX4 || CONFIG_HAL_BOARD == HAL_BOARD_VRBRAIN #include "ToshibaLED_PX4.h" #include