I have run the following code 3 times and each time the copter has flows a different direction. I’m clearly missing something, but I’m not sure what is is and i’ve been struggling with it for a few hours. I am new to ardupilot so any help is appreciated.
My code:
Purple lines indicate where the copter flew. 2 simulations shown here:
Edit: This also causes the copter to move seemingly randomly. Should it not stay still?