mirror of https://github.com/ArduPilot/ardupilot
SRV_Channel: added singleton access for Lua
This commit is contained in:
parent
fbfe11f9ed
commit
e598c69a22
|
@ -487,6 +487,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