16
Expression 2 (E2) Code / E2 - orbiting ship
« on: June 17, 2017, 07:47:21 pm »
I'd like to have a chip that will allow my ship to orbit a planet. Possibly using the aimVector and a low MaxKPH on my gyro pod. Open to other solutions as well, I may be thinking about this all wrong, thus making it overly complex.
Assuming I know the planet center location and the radius:
Maintain a Z value of planet center + 1/2 radius
Maintain an orbit the same radius as the planet
I would think calculating the correct yaw angle and then going "Forward" would be easiest, but I'm not sure how to make that into the AimVec for the gyropod input.
Thanks for any help in anvance...
Assuming I know the planet center location and the radius:
Maintain a Z value of planet center + 1/2 radius
Maintain an orbit the same radius as the planet
I would think calculating the correct yaw angle and then going "Forward" would be easiest, but I'm not sure how to make that into the AimVec for the gyropod input.
Thanks for any help in anvance...