Browse Source

SRV_Channel: added singleton access for Lua

c415-sdk
Andrew Tridgell 5 years ago
parent
commit
e598c69a22
  1. 5
      libraries/SRV_Channel/SRV_Channel.h

5
libraries/SRV_Channel/SRV_Channel.h

@ -487,6 +487,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;

Loading…
Cancel
Save