const classafParrotSdk2::Cmd
sys::Obj afParrotSdk2::Cmd
(Advanced) Represents a low level AT command to send to the drone. See Drone.sendCmd().
- cmdStr
Returns the cmd string to send to the drone.
- id
const Str? id- make
new make(Str id, Obj[] params)(Advanced) Creates a Cmd with the given id and params. Param values must be either an
Int,Float, orStr.- makeCalib
static Cmd makeCalib(Int deviceNum)Makes a
CALIBcmd.- makeConfig
static Cmd makeConfig(Str name, Obj value)Makes a
CONFIGcmd with the given name / value pair.valuemay be a Bool, Int, Float, Str, or a List of any.- makeConfigIds
static Cmd makeConfigIds(Int sessionId, Int userId, Int applicationId)Makes a
CONFIG_IDScmd with the given IDs.- makeCtrl
static Cmd makeCtrl(Int controlMode, Int otherMode)Makes a
CTRLcmd.Possible states of the drone
controlthread.typedef enum { NO_CONTROL_MODE = 0, /*<! Doing nothing */ ARDRONE_UPDATE_CONTROL_MODE, /*<! Not used */ PIC_UPDATE_CONTROL_MODE, /*<! Not used */ LOGS_GET_CONTROL_MODE, /*<! Not used */ CFG_GET_CONTROL_MODE, /*<! Send active configuration file to a client through the 'control' socket UDP 5559 */ ACK_CONTROL_MODE, /*<! Reset command mask in navdata */ CUSTOM_CFG_GET_CONTROL_MODE /*<! Requests the list of custom configuration IDs */ } ARDRONE_CONTROL_MODE;- makeEmergency
static Cmd makeEmergency()Makes a
REFcmd.- makeFlatTrim
static Cmd makeFlatTrim()Makes a
FTRIMcmd.- makeHover
static Cmd makeHover()Makes a
PCMDcmd.- makeKeepAlive
static Cmd makeKeepAlive()Makes a
COMWDGcmd.- makeLand
static Cmd makeLand()Makes a
REFcmd.- makeMove
static Cmd makeMove(Float leftRightTilt, Float frontBackTilt, Float verticalSpeed, Float angularSpeed, Bool combinedYawMode, Bool absoluteMode, Float? absAngle, Float? absAccuracy)Makes a
PCMDorPCMD_MAGcmd.- makePlayAnim
static Cmd makePlayAnim(Int animNo, Duration duration)Makes an
ANIMcmd.- makePlayLed
static Cmd makePlayLed(Int animNo, Float frequency, Duration duration)Makes a
LEDcmd.- makeTakeOff
static Cmd makeTakeOff()Makes a
REFcmd.- params
const Obj[] params- toStr
virtual override Str toStr()Returns the cmdStr with a seq of
0.