Skip to content

Commit

Permalink
update freq from 100 -> 200
Browse files Browse the repository at this point in the history
  • Loading branch information
DocGarbanzo committed Sep 28, 2024
1 parent c8d2cef commit e46e16f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions donkeycar/parts/imu.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def __init__(self):
self.speed = np.zeros(3)
self.time = None
self.path = [] # [(self.time, *self.pos)]
self.sample_rate = 100
self.sample_rate = 200
self.ahrs = imufusion.Ahrs()
self.ahrs.settings = imufusion.Settings(
# imufusion.CONVENTION_NWU,
Expand Down Expand Up @@ -155,7 +155,7 @@ def calibrate(self):
logger.info(f'Initial acceleration: {self.accel_zero}')
while self.ahrs.flags.initialising:
self.poll()
time.sleep(0.01)
time.sleep(0.005)
self.time = time.time()
logger.info('Mpu6050 calibrated')

Expand Down Expand Up @@ -222,7 +222,7 @@ def shutdown(self):
suppress_small=True).replace('\n', '')
stdout.write(out_str)
stdout.flush()
time.sleep(0.01)
time.sleep(0.005)
count += 1
except KeyboardInterrupt:
p.shutdown()
Expand Down

0 comments on commit e46e16f

Please sign in to comment.