- Joined
- Jan 13, 2008
- Messages
- 2,302
- Reaction score
- 6
- Points
- 38
- Location
- Atlanta, GA, USA, North America
I'm stuck, I'm working on an autopilot for my Prometheus Launcher once again and I've actually managed to get it to work reasonably well thanks to an updated understanding of PID controllers. I'm looking to improve on it and I need to get the LVLH direction vector of the vessel as well as being able to calculate an arbitrary LVLH vector (i.e. I say 70 degrees pitch, 90 degree heading, 180 degree roll and get two vectors; pitch and heading would get me one). The best I've been able to figure out so far is to use some kind of rotation matrix along with HorizonRot. Heading seems easy, just the rotation about the Y-axis in local horizon coordinates, but pitch is getting me since it's a composite of the X and Z axes. What's the easiest way of getting these vectors? I'm at a bit of a loss here, I feel like the solution is right in front of me, but I'm not sure how to connect the dots.
Thanks for any help!
Thanks for any help!