OpenMarine
Pypilot setup procedure? - Printable Version

+- OpenMarine (https://forum.openmarine.net)
+-- Forum: Pypilot (https://forum.openmarine.net/forumdisplay.php?fid=17)
+--- Forum: General discussion (https://forum.openmarine.net/forumdisplay.php?fid=18)
+--- Thread: Pypilot setup procedure? (/showthread.php?tid=3344)

Pages: 1 2 3


RE: Pypilot setup procedure? - seandepagnier - 2021-03-21

I2C read error from 12, 16 - Failed to read compass fuse ROM


This indicates the compass sensors do not work in your imu. Try a different imu.

I guess I should modify RTIMULIb2 to make this an error not a warning?

So far, pypilot depends on compass even in wind mode, however the "untested" wind pilot algorithm does not require compass sensors in wind mode, but it does require wind sensors even in compass mode. With alternate algorithms, using only gyro+gps should also give reasonable results. So how to deal with this in pypilot?


RE: Pypilot setup procedure? - SimonLew - 2021-03-21

(2021-03-21, 04:24 PM)seandepagnier Wrote: I2C read error from 12, 16 - Failed to read compass fuse ROM


This indicates the compass sensors do not work in your imu.   Try a different imu.

I guess I should modify RTIMULIb2 to make this an error not a warning?

Having an error alert to a bad IMU would help newbies narrow down the troubleshooting between hardware and software. Of course that only works if confidence is high that the problem really is in hardware.   Smile


RE: Pypilot setup procedure? - seandepagnier - 2021-03-22

I agree. The problem is, this "failure of compass sensors only" with working gyro and accel is a new problem I have only seen recently so the code didn't handle this case correctly. It's still not clear if pypilot should shut down completely with lack of compass since as I mentioned gps+gyro or wind+gyro can make a working pilot which could be very useful in cases where the compass fails. It's just difficult because it could also fall back in this way if the magnetic field is too high, so in this case a different warning.


RE: Pypilot setup procedure? - SimonLew - 2021-03-31

Just to follow up. All the problems stemmed from a bad IMU. Replacement worked right away. Thanks everyone who helped. I learned a bunch of stuff that I would not have had the IMU worked first try.

Simon