APM:Libraries
libraries
AP_HAL_Linux
ToneAlarm_Disco.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
AP_HAL_Linux.h
"
4
#if CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_DISCO
5
#include <
AP_HAL_Linux/RCOutput_Bebop.h
>
6
#include "
ToneAlarm.h
"
7
8
namespace
Linux
{
9
10
#define TONEALARM_PWM_POWER 20
11
12
class
ToneAlarm_Disco
:
public
ToneAlarm
{
13
public
:
14
ToneAlarm_Disco
();
15
bool
init
()
override
;
16
void
stop
()
override
;
17
bool
play
()
override
;
18
19
private
:
20
RCOutput_Bebop
*
bebop_out
;
21
};
22
23
}
24
#endif
Linux::ToneAlarm
Definition:
ToneAlarm.h:113
Linux::RCOutput_Bebop
Definition:
RCOutput_Bebop.h:56
RCOutput_Bebop.h
Linux::ToneAlarm_Disco::ToneAlarm_Disco
ToneAlarm_Disco()
Definition:
ToneAlarm_Disco.cpp:28
Linux::ToneAlarm_Disco::stop
void stop() override
Definition:
ToneAlarm_Disco.cpp:45
Linux::ToneAlarm_Disco::bebop_out
RCOutput_Bebop * bebop_out
Definition:
ToneAlarm_Disco.h:20
Linux::ToneAlarm_Disco::init
bool init() override
Definition:
ToneAlarm_Disco.cpp:35
ToneAlarm.h
Linux::ToneAlarm_Disco
Definition:
ToneAlarm_Disco.h:12
AP_HAL_Linux.h
Linux
Definition:
CameraSensor.h:19
Linux::ToneAlarm_Disco::play
bool play() override
Definition:
ToneAlarm_Disco.cpp:50
Generated on Sun Jun 17 2018 14:18:49 for APM:Libraries by
1.8.13