Skip to content

Custom Commands

Dave Walker edited this page Jan 24, 2020 · 7 revisions

About Custom Commands

Custom commands are implemented in the API itself and while they may result in some "standard" drone commands being sent to the drone to achieve the desired effect the custom command itself is not sent to the drone.

Custom Command Set

The following table lists the custom command set, including the versions of the API each command is supported in:

Command Arguments Action Supported In
runscript filepath Run the set of commands in the specified script 1.0.0.0+
history - Write the command/response history to the console 1.0.0.0+
writehistory filepath Write the command/response history to the specified file 1.0.0.0+
wait n Pause for the specified delay, in seconds 1.0.0.0+
forcefail - When working with a mock connection, force the next command to generate a failure response (for testing purposes) 1.0.0.0+
responsedelay n For connections to the simulator, cause the simulator to delay its responses by the specified number of seconds (used to test timeout issues). A value of 0 for n removes the delay 1.0.0.0+
receivetimeout n For connections to the simulator or drone, set the connection received timeout in seconds 1.0.0.0+
sendtimeout n For connections to the simulator or drone, set the connection send timeout in seconds 1.0.0.0+
Clone this wiki locally