APM:Libraries
|
Class to manage the ArduPilot relay. More...
#include <AP_Relay.h>
Public Member Functions | |
AP_Relay () | |
AP_Relay (const AP_Relay &other)=delete | |
AP_Relay & | operator= (const AP_Relay &)=delete |
void | init () |
void | on (uint8_t relay) |
void | off (uint8_t relay) |
bool | enabled (uint8_t relay) |
void | toggle (uint8_t relay) |
Static Public Attributes | |
static const struct AP_Param::GroupInfo | var_info [] |
Private Attributes | |
AP_Int8 | _pin [AP_RELAY_NUM_RELAYS] |
AP_Int8 | _default |
Class to manage the ArduPilot relay.
Definition at line 18 of file AP_Relay.h.
AP_Relay::AP_Relay | ( | void | ) |
|
delete |
|
inline |
Definition at line 36 of file AP_Relay.h.
Referenced by AP_ServoRelayEvents::do_repeat_relay(), and AP_ServoRelayEvents::do_set_relay().
void AP_Relay::init | ( | void | ) |
void AP_Relay::off | ( | uint8_t | relay | ) |
Definition at line 127 of file AP_Relay.cpp.
Referenced by AP_ServoRelayEvents::do_set_relay(), init(), AP_Camera::relay_pic(), toggle(), AP_Camera::trigger_pic_cleanup(), and AP_Parachute::update().
void AP_Relay::on | ( | uint8_t | relay | ) |
Definition at line 118 of file AP_Relay.cpp.
Referenced by AP_ServoRelayEvents::do_set_relay(), init(), AP_Camera::relay_pic(), toggle(), AP_Camera::trigger_pic_cleanup(), and AP_Parachute::update().
void AP_Relay::toggle | ( | uint8_t | relay | ) |
Definition at line 136 of file AP_Relay.cpp.
Referenced by AP_ServoRelayEvents::do_set_relay(), enabled(), and AP_ServoRelayEvents::update_events().
|
private |
Definition at line 45 of file AP_Relay.h.
Referenced by init().
|
private |
|
static |
Definition at line 41 of file AP_Relay.h.
Referenced by AP_Relay().