mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 01:48:29 -04:00
30 lines
487 B
C
30 lines
487 B
C
|
#ifndef AP_RELAY_APM2_H_
|
||
|
#define AP_RELAY_APM2_H_
|
||
|
|
||
|
#include "Relay.h"
|
||
|
|
||
|
/// @class AP_Relay_APM2
|
||
|
/// @brief SubClass from Relay to manage the APM2 A9 pin as external relay port
|
||
|
|
||
|
|
||
|
class AP_Relay_APM2: public Relay{
|
||
|
public:
|
||
|
|
||
|
// activate the relay
|
||
|
void on();
|
||
|
|
||
|
// de-activate the relay
|
||
|
void off();
|
||
|
|
||
|
// toggle the relay status
|
||
|
void toggle();
|
||
|
|
||
|
// set the relay status (on/off)
|
||
|
void set(bool status);
|
||
|
|
||
|
// get the relay status (on/off)
|
||
|
bool get();
|
||
|
};
|
||
|
|
||
|
#endif /* AP_RELAY_APM2_H_ */
|