API Question Pitch Yaw Roll api for an atmospheric flight

Cyberflunk

New member
Joined
Jan 19, 2010
Messages
1
Reaction score
0
Points
0
Hi

I want to create an ascend-to-orbit autopilot. But i'm totally lost in finding the api to do a simple pitch/roll or yaw :(. The only thing i found is SetAttitudeRotLevel, but that method uses the thrusters (rcs).
 
SetControlSurfaceLevel, I think. Maybe.

Search through the API doc for ControlSurface, anyway.
 
What Hielor said, but be aware that the core may "fight" you for control of those surfaces if a joystick is enabled. If I'm not mistaken, you'll need to set them every simstep, and you'll need to figure out where to put it so that your control code is executed after the core sets the surfaces - not sure if thats pre-step or post-step or where.

For pitch control, at least, use elevator trim whenever possible since the core won't fight you for control of that.
 
Back
Top