|
|
|
@ -43,9 +43,7 @@
@@ -43,9 +43,7 @@
|
|
|
|
|
|
|
|
|
|
class Safety |
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
public: |
|
|
|
|
|
|
|
|
|
Safety(); |
|
|
|
|
~Safety() = default; |
|
|
|
|
|
|
|
|
@ -55,11 +53,10 @@ public:
@@ -55,11 +53,10 @@ public:
|
|
|
|
|
bool isSafetyOff() { return _safety_off; } |
|
|
|
|
|
|
|
|
|
private: |
|
|
|
|
|
|
|
|
|
uORB::Subscription _safety_button_sub{ORB_ID::safety_button}; |
|
|
|
|
|
|
|
|
|
bool _button_available{false}; //<! Set to true if a safety button is connected
|
|
|
|
|
bool _safety_off{false}; //<! Set to true if safety is off
|
|
|
|
|
bool _previous_safety_off{false}; //<! Previous safety value
|
|
|
|
|
bool _safety_disabled{false}; //<! Set to true if safety is disabled
|
|
|
|
|
bool _button_available{false};///< Set to true if a safety button is connected
|
|
|
|
|
bool _safety_off{false}; ///< Set to true if safety is off
|
|
|
|
|
bool _previous_safety_off{false}; ///< Previous safety value
|
|
|
|
|
bool _safety_disabled{false}; ///< Set to true if safety is disabled
|
|
|
|
|
}; |
|
|
|
|