fix(cockpit_bridge): publish assessment_state not failsafe_state to rov-failsafe
This commit is contained in:
parent
86b272802f
commit
d8546413d1
@ -221,9 +221,9 @@ class CockpitBridge(Node):
|
|||||||
# ------------------------------------------------------------------
|
# ------------------------------------------------------------------
|
||||||
|
|
||||||
def _failsafe_cb(self, msg: FailsafeStatus):
|
def _failsafe_cb(self, msg: FailsafeStatus):
|
||||||
"""Update failsafe state integer from FailsafeStatus message."""
|
"""Update assessment state integer (0=GREEN,1=AMBER,2=RED) from FailsafeStatus message."""
|
||||||
with self._lock:
|
with self._lock:
|
||||||
self._values['rov-failsafe'] = int(msg.failsafe_state)
|
self._values['rov-failsafe'] = int(msg.assessment_state)
|
||||||
|
|
||||||
def _depth_cb(self, msg: Float64):
|
def _depth_cb(self, msg: Float64):
|
||||||
"""Update depth in metres from Float64 message."""
|
"""Update depth in metres from Float64 message."""
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user