Skip to content

Commit 20e6495

Browse files
committed
navx: AHRS: Ensure SendableBase.__init__ is called
1 parent 99001b0 commit 20e6495

File tree

1 file changed

+3
-3
lines changed
  • robotpy_ext/common_drivers/navx

1 file changed

+3
-3
lines changed

robotpy_ext/common_drivers/navx/ahrs.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,9 @@ def __init__(self, io, update_rate_hz=None):
103103

104104
if update_rate_hz is None:
105105
update_rate_hz = self.NAVX_DEFAULT_UPDATE_RATE_HZ
106-
106+
107+
super().__init__(addLiveWindow=False)
108+
107109
# Internal variables
108110

109111
self.yaw = 0
@@ -168,8 +170,6 @@ def __init__(self, io, update_rate_hz=None):
168170

169171
self.pidSource = self.PIDSourceType.kDisplacement
170172

171-
self.mutex = threading.RLock()
172-
173173
self.integrator = InertialDataIntegrator()
174174
self.yaw_offset_tracker = OffsetTracker(self.YAW_HISTORY_LENGTH)
175175
self.yaw_angle_tracker = ContinuousAngleTracker()

0 commit comments

Comments
 (0)