Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- lock steering to heading(90, 90).
- until false {
- set targetAltitude to 1000.
- set targetHeading to 90.
- set currentAltitude to ship:altitude.
- set currentHeading to ship:heading.
- set pitchError to targetAltitude - currentAltitude.
- set pitch to 0.2 * pitchError.
- set headingError to targetHeading - currentHeading.
- set heading to 0.2 * headingError.
- set steering:pitch to pitch.
- set steering:yaw to heading.
- wait 0.1.
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement