mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-02 14:13:42 -04:00
03b7c08be6
required for disco
20 lines
281 B
C++
20 lines
281 B
C++
#pragma once
|
|
|
|
#include <AP_HAL/AP_HAL.h>
|
|
|
|
namespace Linux {
|
|
|
|
class ToneAlarm {
|
|
public:
|
|
ToneAlarm();
|
|
virtual bool init();
|
|
virtual void set_buzzer_tone(float frequency, float volume, uint32_t duration_ms);
|
|
|
|
private:
|
|
int32_t period_fd;
|
|
int32_t duty_fd;
|
|
int32_t run_fd;
|
|
};
|
|
|
|
}
|