mirror of https://github.com/ArduPilot/ardupilot
SRV_Channel: added singleton access for Lua
This commit is contained in:
parent
90a9a7c153
commit
d22927d7ae
|
@ -483,6 +483,11 @@ public:
|
|||
// get E - stop
|
||||
static bool get_emergency_stop() { return emergency_stop;}
|
||||
|
||||
// singleton for Lua
|
||||
static SRV_Channels *get_singleton(void) {
|
||||
return _singleton;
|
||||
}
|
||||
|
||||
private:
|
||||
struct {
|
||||
bool k_throttle_reversible:1;
|
||||
|
|
Loading…
Reference in New Issue