const classafParrotSdk2::Cmd

sys::Obj
  afParrotSdk2::Cmd

(Advanced) Represents a low level AT command to send to the drone. See Drone.sendCmd().

cmdStr

Source

Str cmdStr(Int seq)

Returns the cmd string to send to the drone.

id

Source

const Str? id

make

Source

new make(Str id, Obj[] params)

(Advanced) Creates a Cmd with the given id and params. Param values must be either an Int, Float, or Str.

makeCalib

Source

static Cmd makeCalib(Int deviceNum)

Makes a CALIB cmd.

makeConfig

Source

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

Source

static Cmd makeConfigIds(Int sessionId, Int userId, Int applicationId)

Makes a CONFIG_IDS cmd with the given IDs.

makeCtrl

Source

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

Source

static Cmd makeEmergency()

Makes a REF cmd.

makeFlatTrim

Source

static Cmd makeFlatTrim()

Makes a FTRIM cmd.

makeHover

Source

static Cmd makeHover()

Makes a PCMD cmd.

makeKeepAlive

Source

static Cmd makeKeepAlive()

Makes a COMWDG cmd.

makeLand

Source

static Cmd makeLand()

Makes a REF cmd.

makeMove

Source

static Cmd makeMove(Float leftRightTilt, Float frontBackTilt, Float verticalSpeed, Float angularSpeed, Bool combinedYawMode, Bool absoluteMode, Float? absAngle, Float? absAccuracy)

Makes a PCMD or PCMD_MAG cmd.

makePlayAnim

Source

static Cmd makePlayAnim(Int animNo, Duration duration)

Makes an ANIM cmd.

makePlayLed

Source

static Cmd makePlayLed(Int animNo, Float frequency, Duration duration)

Makes a LED cmd.

makeTakeOff

Source

static Cmd makeTakeOff()

Makes a REF cmd.

params

Source

const Obj[] params

toStr

Source

virtual override Str toStr()

Returns the cmdStr with a seq of 0.