5
0
mirror of https://github.com/ArduPilot/ardupilot synced 2025-03-02 19:53:57 -04:00
ardupilot/libraries/AP_Relay/AP_Relay_APM1.h
Sandro Benigno 345e517272 New Relay class and the subclasses for APM1 and APM2.
Updated AP_Camera class.
2012-12-22 17:24:35 +09:00

30 lines
473 B
C++

#ifndef AP_RELAY_APM1_H_
#define AP_RELAY_APM1_H_
#include "Relay.h"
/// @class AP_Relay_APM1
/// @brief SubClass from Relay to manage the APM1 onboard relay
class AP_Relay_APM1: 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_APM1_H_ */