1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
def inline_turn_around(pwr,turntime): OnRev(OUT_C, pwr) Wait(turntime) OnFwd(OUT_AC, pwr) def main(): OnFwd(OUT_AC, 75) Wait(1000) inline_turn_around(75, 2000) Wait(2000) inline_turn_around(75, 500) Wait(1000) inline_turn_around(75, 3000) Off(OUT_AC)