From f8c95189575e3b2a7ef1b0cb030f0217030d832b Mon Sep 17 00:00:00 2001 From: Daisuke Sato Date: Wed, 13 Jan 2021 09:11:26 -0500 Subject: [PATCH] add short sleep before writing SetNoRotation ensuring the device is in measurement mode Signed-off-by: Daisuke Sato --- nodes/mtdevice.py | 1 + 1 file changed, 1 insertion(+) diff --git a/nodes/mtdevice.py b/nodes/mtdevice.py index d3c6092..6bcce71 100755 --- a/nodes/mtdevice.py +++ b/nodes/mtdevice.py @@ -612,6 +612,7 @@ def ResetOrientation(self, code): def SetNoRotation(self, duration): """Initiate the "no rotation" procedure to estimate gyro biases.""" self._ensure_measurement_state() + time.sleep(0.01) data = struct.pack('!H', duration) self.write_ack(MID.SetNoRotation, data)