- Int command enables user to send MAV_CMD_* commands to vehicle.
- It is used to send COMMAND_INT messages to the vehicle to give commands during flight.
- It uses command service of the MAVLink.
- Usage is:
command_int FRAME_TYPE COMMAND_NAME CURRENT AUTOCONTINUE PARAM1 PARAM2 PARAM3 PARAM4 X Y Z
- Frame type and command name must be specified.
- PARAM1-4 and Z are float, X and Y are int32.
- Lets fly to a location in guided mode using MAV_CMD_DO_REPOSITION:
command_int MAV_FRAME_GLOBAL_RELATIVE_ALT_INT MAV_CMD_DO_REPOSITION 0 0 0 0 0 0 -353613322 1491611469 10
- This command needs altitude in meters as its 7th parameter.
- 5th, 6th parameters are latitude, longitude and they must be integers (lat*1e7, lon*1e7)
- Not all the commands are supported in
COMMAND_INT
form but will be implemented and supported near future.