This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
IMU Not behaving correctly.
#4
(2023-06-12, 07:43 AM)mgrouch Wrote: IMU would know where magnetic north is and where
gravitational force is directed.
What it doesn’t know how you installed it
and oriented relative to boat body.
So you need to do calibration type ‘boat is leveled’
and you need to enter offset for heading
using regular compass (IMU doesn’t know where your bow is)

The way pypilot is written after doing it
you need to wait (was it couple minutes)
before restarting pypilot or pi
because pypilot saves calibration that infrequently.

You also need to check permissions on file system
that PyPilot actually can save calibration file and that it’s
not read-only for it.

Yes, done all that.  The Boat levels fine, angles seem correct for pitch and roll.

Yes, I set the compass offset.

I assume PyPilot will issue some sort of warnig if it can't write the calibration data.   I've no idea where it stores it, but this is a standard OpenPlotter install, no fiddling, I assume that OpenPlotter has the directory structure and permissions set up correctly, I could check, but not sure where it stores the cal stuff, any clues?

(2023-06-12, 03:16 AM)seandepagnier Wrote: There may be something wrong with your sensors

mobile phones do not manage this.  I am not sure what you refer to but you can hack in other algorithms, the point is, the phones do not calibrate in a way that gives better accuracy, you probably just have unusable sensors

Are pitch and roll really near zero under alignment?  Could there be any potential magnetic distortions?

I don't think my sensors are faulty ... the pitch/roll seems to be correct.

The "green circle" appears to be correct in as much as it goes through 360 degrees when the boat is turned through a circle ... what seems to be wrong is that as the boat goes around the "green circle" the resolved vector is from the centre of the sphere to the point on the circle ... that would explain the restricted range.

My feeling is that green circle should be co-planar with the red circle, not at 90 degrees to it?   Is it normal for that green circle to display like that on the display?

I know on the MPU9250 sensor I have the following notes in some Arduinio code I have used before:

Quote:  // Sensors x (y)-axis of the accelerometer is aligned with the y (x)-axis of
  // the magnetometer; the magnetometer z-axis (+ down) is opposite to z-axis
  // (+ up) of accelerometer and gyro!


Is it possible the sensor used on this board has some other convention?  It looks to me as if the magentometer of this IMU is not aligned as expected with the accelerometers ...

The sensor I have is the ICM20948, which is recommended with the MacArthur HAT, is it possible this sensor has a different relationship between the axes of the magnetometer and accelerometers to the 9250 sensor?
Reply


Messages In This Thread
IMU Not behaving correctly. - by rszemeti - 2023-06-10, 07:42 PM
RE: IMU Not behaving correctly. - by mgrouch - 2023-06-12, 07:43 AM
RE: IMU Not behaving correctly. - by rszemeti - 2023-06-12, 09:37 AM
RE: IMU Not behaving correctly. - by rszemeti - 2023-06-22, 06:52 PM
RE: IMU Not behaving correctly. - by rszemeti - 2023-06-23, 12:20 AM
RE: IMU Not behaving correctly. - by rszemeti - 2023-06-23, 12:55 PM
RE: IMU Not behaving correctly. - by rszemeti - 2023-06-23, 01:56 PM
RE: IMU Not behaving correctly. - by rszemeti - 2023-08-16, 11:00 AM
RE: IMU Not behaving correctly. - by rszemeti - 2023-07-10, 04:01 PM
RE: IMU Not behaving correctly. - by winkaj - 2023-07-11, 10:11 PM
RE: IMU Not behaving correctly. - by yoenn - 2023-07-17, 06:19 PM
RE: IMU Not behaving correctly. - by yoenn - 2023-08-24, 10:54 AM
RE: IMU Not behaving correctly. - by winkaj - 2023-08-24, 07:17 PM
RE: IMU Not behaving correctly. - by Paskee - 2023-08-25, 01:13 PM
RE: IMU Not behaving correctly. - by rszemeti - 2023-08-25, 03:36 PM
RE: IMU Not behaving correctly. - by rszemeti - 2023-08-24, 07:25 PM
RE: IMU Not behaving correctly. - by winkaj - 2023-08-26, 03:53 AM
RE: IMU Not behaving correctly. - by Paskee - 2023-08-29, 07:49 PM
RE: IMU Not behaving correctly. - by rszemeti - 2023-09-02, 10:18 AM
RE: IMU Not behaving correctly. - by rszemeti - 2023-09-06, 09:55 AM
RE: IMU Not behaving correctly. - by rszemeti - 2023-11-15, 06:38 AM
RE: IMU Not behaving correctly. - by rszemeti - 2023-11-23, 04:38 PM
RE: IMU Not behaving correctly. - by rszemeti - 2023-11-25, 12:59 PM
RE: IMU Not behaving correctly. - by rszemeti - 2023-12-19, 07:32 PM
RE: IMU Not behaving correctly. - by ironman - 2023-12-19, 08:27 PM
RE: IMU Not behaving correctly. - by rszemeti - 2023-12-19, 11:24 PM
RE: IMU Not behaving correctly. - by ironman - 2023-12-20, 10:21 AM
RE: IMU Not behaving correctly. - by rszemeti - 2023-12-20, 09:57 PM
RE: IMU Not behaving correctly. - by ironman - 2023-12-20, 10:26 PM
RE: IMU Not behaving correctly. - by rszemeti - 2023-12-21, 01:09 AM
RE: IMU Not behaving correctly. - by rszemeti - 2023-12-21, 10:22 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)