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
Gains.... Need some help lease
#5
the bar color indicates if that particular gain is contributing to port or starboard adjustment. If it turns blue it has saturated.

There is no "accepted error" with the basic autopilot algorithm, it does what the gains tell it to. So higher gains would give stronger reactions and lower errors, but tendency to use more power or over correct.

the reactive gain is experimental it is probably best you leave it at 0. I suggest also setting the integral gain I to 0

the servo.gain will drive the motor harder and is essentially the same as increasing all the gains. If it is negative it allows the pilot to steer if the wires to the motor are otherwise backwards.

Can you confirm the reported heading was 20 degrees different from the one you commanded? Because maybe the compass is out of calibration. The P and PR gains react to absolute heading errors and it's likely you should increase them, but if significant over steering occurs you will need to increase D and DD as well to compensate.

The FF gain will react to immediate changes in heading, so this may be useful to increase to get the boat to change course more quickly.

I'm working on/planning alternative algorithms which use different gains and parameters and even can learn as they go but the basic autopilot with these gains has already proven to work well in a wide variety of boats and conditions.
Reply


Messages In This Thread
Gains.... Need some help lease - by rastam4n - 2020-11-14, 11:45 PM
RE: Gains.... Need some help lease - by xfactor99 - 2020-11-15, 12:46 AM
RE: Gains.... Need some help lease - by Andreas29 - 2020-11-15, 09:38 AM
RE: Gains.... Need some help lease - by rastam4n - 2020-11-15, 05:21 PM
RE: Gains.... Need some help lease - by seandepagnier - 2020-11-15, 07:18 PM
RE: Gains.... Need some help lease - by rastam4n - 2020-11-15, 08:42 PM
RE: Gains.... Need some help lease - by Andreas29 - 2020-11-15, 09:07 PM
RE: Gains.... Need some help lease - by rastam4n - 2020-11-15, 11:40 PM
RE: Gains.... Need some help lease - by xfactor99 - 2020-11-16, 08:04 AM
RE: Gains.... Need some help lease - by rastam4n - 2020-11-16, 07:05 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)