# Is there a way to calculate the difference in pitch required to reach a certain vertical speed? [closed]

I am programming an autopilot for a 787 flight sim software and I've been having a problem. I'm trying to simulate a PID that controls the pitch of the aircraft In relation to the vertical speed selected. I'm not sure how to obtain the difference in pitch required to get to a certain vertical speed in fpm and keep it stable there. Any advice and input is appreciated.

Edit: Posted updated question on a more suitable stackexchange forum: https://robotics.stackexchange.com/questions/16249/needed-help-with-pid-for-an-airplane-autopilot-system

• Is there any particular reason why you can't just iteratively and continually adjust in response to changing conditions? If, for example, the (simulated) aircraft hits an updraft or downdraft (which usually come in close proximity to one another...), then any precomputed value for pitch to vertical speed is very likely useless anyway.
– user
Aug 18, 2018 at 11:03
• What have you tried? From your question it's very hard to see what your understanding of aircraft dynamics and control design is. I would say that the thing that relates vertical speed to pitch is your (PID) controller. Aug 18, 2018 at 12:42
• Yeah, I'm a little confused by your question. Do you know how a PID controller actually works? Because a PID controller is the thing that tells you what pitch is required to attain and maintain a desired vertical speed. If you want, take a look at the flight sim pilot that I wrote, and see how it works: github.com/tswett/WarrigalsAutopilot Look in the Autopilot and Controller classes. Aug 18, 2018 at 14:02
• By the way, this question would probably be a better fit on robotics.stackexchange.com, because the information you need is how to implement a PID controller. The Robotics site is the perfect place to get that information. The Aviation site is not such a good place because you don't actually need any aviation-related information here. If you'd like to move your question, click the "flag" link on your question and say that you'd like it to be moved to the Robotics site. Aug 18, 2018 at 14:10
• Okay, so do you need help implementing the PID controller, or have you already implemented the PID controller and now you're having problems with it? If you need help implementing the PID controller, then we need to know what, exactly, you need help with; and if you've already implemented it and now you're having problems, then we need to know what, exactly, the problems are. Aug 18, 2018 at 22:37