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:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ap.heading making jumps
#1
I normally have the scope running on ap.heading_error to quantify the amplitude of the error in order to optimize my gains. Yesterday I noticed the heading_error making sudden jumps - up and down. This coincided with jumps in ap.heading, and I concluded this was the cause for that. I've never seen this before and I have no reason to suspect a sudden increase in electric or magnetical influences. Also, I find it too easy to suspect the IMU, as there are tons of code between the IMU and ap.heading. Also, the lowpass filter should have smoothed off any IMU-induced jumps.

So what I suspect is that these jumps are artefacts of the compass calibration mechanism. That would be fine with me, as that mechanism has to do its work at some point anyway and some jump in heading is to be expected then. But not 5 jumps in 10 seconds or so. At some point it stopped jumping, and I had done my portion of gain-optimizing for the day; pypilot worked well for the remainder of the trip. I was not in a position to make movies or do some logging.

I'd like to know if my assumption could be right, and know a little bit more about how the 2D compass calibration (the one that sets imu.compass.calibration) relates to the 3D calibration, that provides the corrections for heading and pitch? What values should I set on my scope to see each mechanism at work? At least, this would enable me to search for the cause of these jumps.

Thx!
Reply


Messages In This Thread
ap.heading making jumps - by ironman - 2020-07-16, 02:39 PM
RE: ap.heading making jumps - by seandepagnier - 2020-07-16, 09:29 PM
RE: ap.heading making jumps - by ironman - 2020-07-17, 09:06 PM
RE: ap.heading making jumps - by seandepagnier - 2020-07-18, 06:24 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)