AP_Notify: replace libuavcan with libcanard based driver

This commit is contained in:
bugobliterator
2023-03-29 17:16:39 +11:00
committed by Andrew Tridgell
parent 47e5337fbd
commit 2ede296486
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -348,9 +348,9 @@ void AP_Notify::add_backends(void)
#endif
break;
case Notify_LED_UAVCAN:
#if HAL_CANMANAGER_ENABLED
#if HAL_ENABLE_LIBUAVCAN_DRIVERS
ADD_BACKEND(new UAVCAN_RGB_LED(0));
#endif // HAL_CANMANAGER_ENABLED
#endif // HAL_ENABLE_LIBUAVCAN_DRIVERS
break;
case Notify_LED_Scripting:
+1 -1
View File
@@ -64,7 +64,7 @@ void MMLPlayer::start_note(float duration, float frequency, float volume)
_note_duration_us = duration*1e6;
hal.util->toneAlarm_set_buzzer_tone(frequency, volume, _note_duration_us/1000U);
#if HAL_CANMANAGER_ENABLED
#if HAL_ENABLE_LIBUAVCAN_DRIVERS
// support CAN buzzers too
uint8_t can_num_drivers = AP::can().get_num_drivers();
+1 -1
View File
@@ -17,7 +17,7 @@
#include <AP_HAL/AP_HAL.h>
#include <AP_HAL/system.h>
#if HAL_CANMANAGER_ENABLED
#if HAL_ENABLE_LIBUAVCAN_DRIVERS
#include "UAVCAN_RGB_LED.h"
#include <AP_UAVCAN/AP_UAVCAN.h>