Sweet! Yeah this works, I had my values for 140 incorrectly absoluted(idk if that's a word but it sounds sweet.)
Here are my commands for a figure 8 solution with a few flips in between.
const commands = [
'command',
'battery?',
'time?',
'takeoff',
'flip f',
'curve 70...