|
|
|
@ -43,23 +43,20 @@
@@ -43,23 +43,20 @@
|
|
|
|
|
|
|
|
|
|
class Safety |
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
public: |
|
|
|
|
|
|
|
|
|
Safety(); |
|
|
|
|
~Safety() = default; |
|
|
|
|
|
|
|
|
|
bool safetyButtonHandler(); |
|
|
|
|
void activateSafety(); |
|
|
|
|
bool isButtonAvailable() { return _button_available;} |
|
|
|
|
bool isSafetyOff() { return _safety_off;} |
|
|
|
|
bool isButtonAvailable() { return _button_available; } |
|
|
|
|
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
|
|
|
|
|
}; |
|
|
|
|