SRV_Channel: added singleton access for Lua

This commit is contained in:
Andrew Tridgell 2019-10-31 08:23:01 +11:00 committed by Randy Mackay
parent 90a9a7c153
commit d22927d7ae
1 changed files with 5 additions and 0 deletions

View File

@ -483,6 +483,11 @@ public:
// get E - stop // get E - stop
static bool get_emergency_stop() { return emergency_stop;} static bool get_emergency_stop() { return emergency_stop;}
// singleton for Lua
static SRV_Channels *get_singleton(void) {
return _singleton;
}
private: private:
struct { struct {
bool k_throttle_reversible:1; bool k_throttle_reversible:1;