mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-10-06 19:00:27 +08:00
AP_Notify: replace libuavcan with libcanard based driver
This commit is contained in:
committed by
Andrew Tridgell
parent
47e5337fbd
commit
2ede296486
@@ -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:
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user