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
CALIB
cmd.- makeConfig
static Cmd makeConfig(Str name, Obj value)
Makes a
CONFIG
cmd with the given name / value pair.value
may be a Bool, Int, Float, Str, or a List of any.- makeConfigIds
static Cmd makeConfigIds(Int sessionId, Int userId, Int applicationId)
Makes a
CONFIG_IDS
cmd with the given IDs.- makeCtrl
static Cmd makeCtrl(Int controlMode, Int otherMode)
Makes a
CTRL
cmd.Possible states of the drone
control
thread.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
REF
cmd.- makeFlatTrim
static Cmd makeFlatTrim()
Makes a
FTRIM
cmd.- makeHover
static Cmd makeHover()
Makes a
PCMD
cmd.- makeKeepAlive
static Cmd makeKeepAlive()
Makes a
COMWDG
cmd.- makeLand
static Cmd makeLand()
Makes a
REF
cmd.- makeMove
static Cmd makeMove(Float leftRightTilt, Float frontBackTilt, Float verticalSpeed, Float angularSpeed, Bool combinedYawMode, Bool absoluteMode, Float? absAngle, Float? absAccuracy)
Makes a
PCMD
orPCMD_MAG
cmd.- makePlayAnim
static Cmd makePlayAnim(Int animNo, Duration duration)
Makes an
ANIM
cmd.- makePlayLed
static Cmd makePlayLed(Int animNo, Float frequency, Duration duration)
Makes a
LED
cmd.- makeTakeOff
static Cmd makeTakeOff()
Makes a
REF
cmd.- params
const Obj[] params
- toStr
virtual override Str toStr()
Returns the cmdStr with a seq of
0
.