- Script.ChangeParam(name, value)
- Script.ChangeMode(name) # i.e., mode = RTL
- Script.WaitFor(string, timeout) # unsure what this command does
- Script.RC(channel, PWM, sendnow) # automates emulated RC transmissions?
However, MAVProxy is written & executed in python and can accomplish a whole lot more... Also, if I understand correctly, during execution of an established flight plan, Mission Planner automates sending the next command to the UAV based on the telemetry received... (i.e., Mission Planner sends the next command in the established flight plan after the telemetry received indicates the UAV has completed the current command, e.g., it doesn't tell the UAV to go to waypoint 2 until it has reached waypoint 1).
So, my question is:
Is there a way to script a flight plan in Python that executes commands based on TIME instead of telemetry???
[i.e., What are the python scripting commands/functions to command the UAV "go to waypoint 1, sleep(30), go to waypoint 2, sleep(30), LOITER, sleep(30), go to waypoint 4, toggle servo 8, RTL" without caring if the UAV actually ever made it to the waypoint before following the next command]
(based on the comment from Mission Planner's creator here, I would think this is possible, but I need a list of all possible commands to send with the corresponding Python syntax.)