Advertisement
sumguytwitches

Athena 2 Vtol

Nov 6th, 2020 (edited)
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. function tilt2 { parameter tlt is 0. if vsErr < -1 and (vdot(hvel:normalized, relVelVec) > -2 or vdot(tvCopy, hvel) < 0) set tlt to tlt + tlt * max(-1, vsErr / 20). set tlt to tlt + vang(up:vector, facing:topvector) - 90. for s in servos s:setfield("target angle", tlt). }. function tilt {parameter tlt. tilt2(-tlt + 90). }
  2.  
  3. // now !runscript xeNy4xmv
  4.  
  5. // and finally flipSteering on
  6.  
  7. // to float uphill lock hdg to body:geopositionof(-norm() * 1000):heading
  8.  
  9. // to go to the nearest flatspot !runscript amEW9Usj and then gotoposition(checkterrain())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement