SDK Question Little joe autopilot not fallowing is route when focusing on launchpad ?

Woodylepic

New member
Joined
Dec 29, 2009
Messages
71
Reaction score
0
Points
0
screenshot198u.jpg

I have some problem whit my Little Joe autopilot.

I have 2 vessel, a launch pad, and little joe rocket attached to this launch pad.

At begining of the scenary the focus was in launch pad cockpit, 15 seconde after "lift off" then the focus change to Little Joe Booster external view. The problem is that when the focus was on the launch pad the autopilot of Little Joe do not fallow is programmed patch and heading :idk:

Thank you ?
 
Last edited:
hVessel = oapiGetFocusObject (); i.AM IN THE LAUNCH PAD COCKPIT, IS THIS FOCUS OK ?
No. If you're focused on the launch pad, this will return the launch pad, not the little joe. This doesn't matter that much though, since you never use hVessel.

oapiGetFocusPitch( &Pitch ); IS THIS LINE OK ?
No, for stunningly obvious reasons. You don't want the pitch for the focus vessel, you want the pitch for your vessel.

GetAngularVel( Angular_Velocity ); IS THIS LINE OK ?
Yes, this is fine, because you're getting your angular velocity, not the focus vessel's angular velocity.
 
No. If you're focused on the launch pad, this will return the launch pad, not the little joe. This doesn't matter that much though, since you never use hVessel.


No, for stunningly obvious reasons. You don't want the pitch for the focus vessel, you want the pitch for your vessel.


Yes, this is fine, because you're getting your angular velocity, not the focus vessel's angular velocity.


Ok Stupid I'am now all ok, I have delete all focus relative to (bank,pitch) and I have replaced oapygetfocusheading by GetYaw and now all is ok Little joe fallow is programed patch at Launch pad finaly got it, thank :facepalm::thumbup:,
 
Last edited:
Back
Top