SRV_Channel: added singleton access for Lua

This commit is contained in:
Andrew Tridgell 2019-10-31 08:23:01 +11:00
parent fbfe11f9ed
commit e598c69a22
1 changed files with 5 additions and 0 deletions

View File

@ -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;