icedown
New member
- Joined
- Sep 5, 2011
- Messages
- 115
- Reaction score
- 0
- Points
- 0
I'm working on an autopilot for the G42-200. I've got quite a bit of it done, but I've been working on one part for several days and just can't get it to work right.
Here is the way it is supposed to work.
Start from basic KSC15 scenario, fire it up and push full power - AB.
At 105m/s it will pitch the nose up to 9deg and hold it there until 50m high.
At 10m it will retract the gear.
At 50m it switches to maintain a 3deg climb(pitch - AoA = 3deg). It holds this until it reaches 200m/s.
Once it reaches 200m/s it pitches up to maintain 200m/s + 10m/s/1km. It holds this until it reaches mach 0.75.
It holds mach 0.75 until it reaches 10km then switches to follow the equation I put in the calculationMFD for acceleration through mach 1 and up to T3.
This is where I'm having the problem. I can't seem to get the PID settings right to hold climb correctly. I'm looking to see if someone can help me get these settings right.
Once you open the MFD up it shows the settings for the altitude phase of the flight. You can change these using the 3 buttons on the right side (Kp, Ki, Kd). None of the other work, and changes do not take affect until you reach the altitude phase of the ascent. At the bottom of the MFD you can see the altitude that is has calculated to be at for the given speed once you reach the altitude phase. The error given to the pid controller is required altitude - present altitude, adjusted for 1 sec in the future.
Here is the dll.
G42AutoAscentMFD
There are a couple bugs in it. You can reload a current state but for some reason it crashes when restarting from the KSC15 scenario.
Also, tell me what you think of the ascent profile. This is the one that uses the least fuel that I've tried so far but I've mainly been trying to line out the altitude phase and haven't tried to many different ascents.
Here is the way it is supposed to work.
Start from basic KSC15 scenario, fire it up and push full power - AB.
At 105m/s it will pitch the nose up to 9deg and hold it there until 50m high.
At 10m it will retract the gear.
At 50m it switches to maintain a 3deg climb(pitch - AoA = 3deg). It holds this until it reaches 200m/s.
Once it reaches 200m/s it pitches up to maintain 200m/s + 10m/s/1km. It holds this until it reaches mach 0.75.
It holds mach 0.75 until it reaches 10km then switches to follow the equation I put in the calculationMFD for acceleration through mach 1 and up to T3.
This is where I'm having the problem. I can't seem to get the PID settings right to hold climb correctly. I'm looking to see if someone can help me get these settings right.
Once you open the MFD up it shows the settings for the altitude phase of the flight. You can change these using the 3 buttons on the right side (Kp, Ki, Kd). None of the other work, and changes do not take affect until you reach the altitude phase of the ascent. At the bottom of the MFD you can see the altitude that is has calculated to be at for the given speed once you reach the altitude phase. The error given to the pid controller is required altitude - present altitude, adjusted for 1 sec in the future.
Here is the dll.
G42AutoAscentMFD
There are a couple bugs in it. You can reload a current state but for some reason it crashes when restarting from the KSC15 scenario.
Also, tell me what you think of the ascent profile. This is the one that uses the least fuel that I've tried so far but I've mainly been trying to line out the altitude phase and haven't tried to many different ascents.