diff --git a/libraries/SRV_Channel/SRV_Channel.h b/libraries/SRV_Channel/SRV_Channel.h index 10c47416ee..c3b7356c53 100644 --- a/libraries/SRV_Channel/SRV_Channel.h +++ b/libraries/SRV_Channel/SRV_Channel.h @@ -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;