|
|
|
@ -6,9 +6,9 @@
@@ -6,9 +6,9 @@
|
|
|
|
|
#include <AP_Math/AP_Math.h> |
|
|
|
|
#include <AP_Notify/AP_Notify.h> |
|
|
|
|
|
|
|
|
|
#if HAL_WITH_UAVCAN |
|
|
|
|
#if HAL_ENABLE_LIBUAVCAN_DRIVERS |
|
|
|
|
#include <AP_UAVCAN/AP_UAVCAN.h> |
|
|
|
|
#include <AP_BoardConfig/AP_BoardConfig_CAN.h> |
|
|
|
|
#include <AP_CANManager/AP_CANManager.h> |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
extern const AP_HAL::HAL& hal; |
|
|
|
@ -64,7 +64,7 @@ void MMLPlayer::start_note(float duration, float frequency, float volume)
@@ -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_WITH_UAVCAN |
|
|
|
|
#if HAL_ENABLE_LIBUAVCAN_DRIVERS |
|
|
|
|
// support CAN buzzers too
|
|
|
|
|
uint8_t can_num_drivers = AP::can().get_num_drivers(); |
|
|
|
|
|
|
|
|
|