Browse Source

SRV_Channel: added singleton access for Lua

master
Andrew Tridgell 5 years ago committed by Randy Mackay
parent
commit
d22927d7ae
  1. 5
      libraries/SRV_Channel/SRV_Channel.h

5
libraries/SRV_Channel/SRV_Channel.h

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

Loading…
Cancel
Save