Skip to content

Commit

Permalink
Give the pi3hat more time to update IMU config
Browse files Browse the repository at this point in the history
Sometimes it needs more than 100us before it is able to coherently
respond to SPI.  We'll give it 1ms for now.
  • Loading branch information
jpieper committed Jun 9, 2021
1 parent ffe7db9 commit d1e8aa5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cpp/mjbots/pi3hat/pi3hat.cc
Original file line number Diff line number Diff line change
Expand Up @@ -933,7 +933,7 @@ class Pi3Hat::Impl {
sizeof(desired_imu));

// Give it some time to work.
::usleep(100);
::usleep(1000);
DeviceImuConfiguration config_verify;
primary_spi_.Read(
0, 35,
Expand Down

0 comments on commit d1e8aa5

Please sign in to comment.