Skip to content

Commit a8e2aab

Browse files
committed
Merge pull request #591 from dronekit/rroche/cache-ekf-status
cache ekf_ok callbacks
2 parents 8048b83 + c3c7132 commit a8e2aab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dronekit/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1151,7 +1151,7 @@ def listener(self, name, m):
11511151
# boolean: EKF's predicted horizontal position (absolute) estimate is good
11521152
self._ekf_predposhorizabs = (m.flags & ardupilotmega.EKF_PRED_POS_HORIZ_ABS) > 0
11531153

1154-
self.notify_attribute_listeners('ekf_ok', self.ekf_ok)
1154+
self.notify_attribute_listeners('ekf_ok', self.ekf_ok, cache=True)
11551155

11561156
self._flightmode = 'AUTO'
11571157
self._armed = False

0 commit comments

Comments
 (0)