Board index FlightGear Development Aircraft Autopilot and route manager

F-86F Sabre Rocks Side to Side between waypoints on autopilo

Designing a stable autopilot is one of the hardest things. Need help?

F-86F Sabre Rocks Side to Side between waypoints on autopilo

Postby Turnit » Fri Dec 23, 2016 6:21 pm

I have been flying it a bit lately, and there is a thing it does between way points while it is on autopilot. It will rock side to side, and I have to slow it down to about 170 to 200 knots to get it to stabilize then speed back up. This will always happen only at cruise altitude, not if you switch way points while climbing or decent. Does anyone else fly this and see this?
Harbor Air Virutal - Launching 11/28/2019
Turnit
 
Posts: 518
Joined: Sun Aug 24, 2014 10:21 pm
Location: Washington State, USA
Callsign: Turnit
Version: 2017.2.1
OS: Windows 8.1

Re: F-86F Sabre Rocks Side to Side between waypoints on auto

Postby wkitty42 » Sat Dec 24, 2016 7:37 pm

i can't say that i've flown this craft but the description sounds like what i see the AI craft doing all the time... that is constantly twitching to stay on the flight path... in your case, it is probably more noticeable at high speeds than slower ones... does it do the same and is it as bad in the latest version 2016.4.3??
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 9162
Joined: Fri Feb 20, 2015 4:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 22.04

Re: F-86F Sabre Rocks Side to Side between waypoints on auto

Postby Turnit » Sun Dec 25, 2016 1:47 am

I actually haven't tried it in the latest version. I typically cruise at 300 knots, slower speeds don't have the problem it seems.
Harbor Air Virutal - Launching 11/28/2019
Turnit
 
Posts: 518
Joined: Sun Aug 24, 2014 10:21 pm
Location: Washington State, USA
Callsign: Turnit
Version: 2017.2.1
OS: Windows 8.1

Re: F-86F Sabre Rocks Side to Side between waypoints on auto

Postby sanhozay » Sun Dec 25, 2016 10:21 am

I had a quick look at the files and It's using the generic autopilot, which obviously isn't tuned to any specific aircraft. It's quite an aggressive autopilot and what you describe sounds like instability in the roll axis controllers. When it makes a correction, it over corrects and overshoots where it wants to be, so then it corrects back the other way, but over corrects and so on ad nauseum. :mrgreen:

If you want to try tuning it, you should copy the generic autopilot from fgdata into the aircraft's Systems directory and set it up as the autopilot in the -set.xml file, rather than change fgdata. I'd probably start with the wing leveler; halve the Kp to 0.25 and double the Ti to 20. Give it a test at 300 and if that sorts it, do the same to the other roll modes -- heading hold, etc.
sanhozay
 
Posts: 1207
Joined: Thu Dec 26, 2013 12:57 pm
Location: EGNM
Callsign: G-SHOZ
Version: Git
OS: Ubuntu 16.04

Re: F-86F Sabre Rocks Side to Side between waypoints on auto

Postby Turnit » Sun Dec 25, 2016 5:34 pm

Okay, I will try those changes next time I fly it and I will report back if they work. Thanks for the help, and have a happy holiday!
Harbor Air Virutal - Launching 11/28/2019
Turnit
 
Posts: 518
Joined: Sun Aug 24, 2014 10:21 pm
Location: Washington State, USA
Callsign: Turnit
Version: 2017.2.1
OS: Windows 8.1

Re: F-86F Sabre Rocks Side to Side between waypoints on auto

Postby Turnit » Mon Dec 26, 2016 3:57 pm

Someone can correct me if im wrong, but the F-86 has no systems folder in he files....
Harbor Air Virutal - Launching 11/28/2019
Turnit
 
Posts: 518
Joined: Sun Aug 24, 2014 10:21 pm
Location: Washington State, USA
Callsign: Turnit
Version: 2017.2.1
OS: Windows 8.1

Re: F-86F Sabre Rocks Side to Side between waypoints on auto

Postby Johan G » Mon Dec 26, 2016 7:07 pm

You can add one. ;)

Note: IIRC some things (pitot systems come to mind) are hardcoded to use "Systems" (with a capital "S"). It might not be used now* but may come in later

* Or rather, it is borrowed from the generic aircraft in, if I recall correctly, $FG_ROOT/Aircraft/Generic/Systems when an aircraft is loaded ($FG_ROOT being the "data" directory of the FlightGear installation).

Getting off topic here, but... Configuring for example pitot systems in the aircraft will override the properties of the generic aircraft. Things one can configure are for example parallel pitot systems so that one pitot/static system will drive the instruments for the pilot and one autopilot, a second one will drive the copilots instruments and second autopilot and a third one will drive the standby instruments, allowing for more "interesting" failure scenarios. For more info on that see $FG_ROOT/Docs/README.systems.
Low-level flying — It's all fun and games till someone looses an engine. (Paraphrased from a YouTube video)
Improving the Dassault Mirage F1 (Wiki, Forum, GitLab. Work in slow progress)
Some YouTube videos
Johan G
Moderator
 
Posts: 6634
Joined: Fri Aug 06, 2010 6:33 pm
Location: Sweden
Callsign: SE-JG
IRC name: Johan_G
Version: 2020.3.4
OS: Windows 10, 64 bit

Re: F-86F Sabre Rocks Side to Side between waypoints on auto

Postby Turnit » Tue Dec 27, 2016 12:26 am

There is a autopilot in the generic folder, but not under the systems folder. Thanks for the help.
Harbor Air Virutal - Launching 11/28/2019
Turnit
 
Posts: 518
Joined: Sun Aug 24, 2014 10:21 pm
Location: Washington State, USA
Callsign: Turnit
Version: 2017.2.1
OS: Windows 8.1

Re: F-86F Sabre Rocks Side to Side between waypoints on auto

Postby Turnit » Tue Dec 27, 2016 2:55 am

Do you guys think any editing in this code in the -set file is needed to fix the problem?

Code: Select all
<autopilot>
   <config>
     <min-climb-speed-kt type="float">70.0</min-climb-speed-kt>
     <best-climb-speed-kt type="float">75.0</best-climb-speed-kt>
     <target-climb-rate-fpm type="float">500.0</target-climb-rate-fpm>
     <target-descent-rate-fpm type="float">1000.0</target-descent-rate-fpm>
     <elevator-adj-factor type="float">4000.0</elevator-adj-factor>
     <integral-contribution type="float">0.01</integral-contribution>
     <zero-pitch-throttle type="float">0.45</zero-pitch-throttle>
     <zero-pitch-trim-full-throttle type="float">0.14</zero-pitch-trim-full-throttle>
   </config>
 </autopilot>
Harbor Air Virutal - Launching 11/28/2019
Turnit
 
Posts: 518
Joined: Sun Aug 24, 2014 10:21 pm
Location: Washington State, USA
Callsign: Turnit
Version: 2017.2.1
OS: Windows 8.1

Re: F-86F Sabre Rocks Side to Side between waypoints on auto

Postby wkitty42 » Tue Dec 27, 2016 3:20 am

not unless it is integral-contribution, no... i don't see anything there that would indicate the accuracy for following the flightpath...

my 2 centavos as a still learning newbie ;)
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 9162
Joined: Fri Feb 20, 2015 4:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 22.04

Re: F-86F Sabre Rocks Side to Side between waypoints on auto

Postby Johan G » Tue Dec 27, 2016 12:17 pm

Since you might possibly be making the autopilot from scratch, I think this wiki article might be of help (though you might already have seen it): Howto:Design an autopilot (perm).

PID controllers can be approached in many ways and can be both very frustrating and joyful to tweak. It may be a good idea to look at YouTube some tutorials on PID-tuning.
Low-level flying — It's all fun and games till someone looses an engine. (Paraphrased from a YouTube video)
Improving the Dassault Mirage F1 (Wiki, Forum, GitLab. Work in slow progress)
Some YouTube videos
Johan G
Moderator
 
Posts: 6634
Joined: Fri Aug 06, 2010 6:33 pm
Location: Sweden
Callsign: SE-JG
IRC name: Johan_G
Version: 2020.3.4
OS: Windows 10, 64 bit

Re: F-86F Sabre Rocks Side to Side between waypoints on auto

Postby Turnit » Tue Dec 27, 2016 3:00 pm

I made the tweaks mentioned earlier to half the kp value and double the ti value and was connecting everything up in the -set file, and saw that in the code. Ill take a look at that article. Im a newbie at all of this, so thanks for all your help.
Harbor Air Virutal - Launching 11/28/2019
Turnit
 
Posts: 518
Joined: Sun Aug 24, 2014 10:21 pm
Location: Washington State, USA
Callsign: Turnit
Version: 2017.2.1
OS: Windows 8.1

Re: F-86F Sabre Rocks Side to Side between waypoints on auto

Postby Johan G » Tue Dec 27, 2016 5:14 pm

You are most welcome. :D
Low-level flying — It's all fun and games till someone looses an engine. (Paraphrased from a YouTube video)
Improving the Dassault Mirage F1 (Wiki, Forum, GitLab. Work in slow progress)
Some YouTube videos
Johan G
Moderator
 
Posts: 6634
Joined: Fri Aug 06, 2010 6:33 pm
Location: Sweden
Callsign: SE-JG
IRC name: Johan_G
Version: 2020.3.4
OS: Windows 10, 64 bit

Re: F-86F Sabre Rocks Side to Side between waypoints on auto

Postby Octal450 » Wed Dec 28, 2016 5:31 am

In a basic statement for Kp:
If the plane overcorrects himself constantly... reduce Kp slightly, until it stops.
If the plane won't react enough, increase Kp slightly, until it works optimally.
The Ti should be fine 10-20 in most cases. You can always add a max-rate-of-change filter, to reduce load, and give the AP some wiggle room.
Skillset: JSBsim Flight Dynamics, Systems, Canvas, Autoflight/Control, Instrumentation, Animations
Aircraft: A320-family, MD-11, MD-80, Contribs in a few others

Octal450's GitHub|Launcher Catalog
|Airbus Dev Discord|Octal450 Hangar Dev Discord
User avatar
Octal450
 
Posts: 5601
Joined: Tue Oct 06, 2015 1:51 pm
Location: Huntsville, AL
Callsign: WTF411
Version: next
OS: Windows 11

Re: F-86F Sabre Rocks Side to Side between waypoints on auto

Postby Johan G » Wed Dec 28, 2016 4:36 pm

it0uchpods wrote in Wed Dec 28, 2016 5:31 am:You can always add a max-rate-of-change filter, to reduce load, and give the AP some wiggle room.

Hmm, that is an interesting technique. Thanks for the inspiration. :D
Low-level flying — It's all fun and games till someone looses an engine. (Paraphrased from a YouTube video)
Improving the Dassault Mirage F1 (Wiki, Forum, GitLab. Work in slow progress)
Some YouTube videos
Johan G
Moderator
 
Posts: 6634
Joined: Fri Aug 06, 2010 6:33 pm
Location: Sweden
Callsign: SE-JG
IRC name: Johan_G
Version: 2020.3.4
OS: Windows 10, 64 bit

Next

Return to Autopilot and route manager

Who is online

Users browsing this forum: No registered users and 1 guest