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

const static Cmd makeCalib(Int deviceNum)

Makes a CALIB cmd.

makeConfig

Source

const 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

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

Makes a CONFIG_IDS cmd with the given IDs.

makeCtrl

Source

const 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

const static Cmd makeEmergency()

Makes a REF cmd.

makeFlatTrim

Source

const static Cmd makeFlatTrim()

Makes a FTRIM cmd.

makeHover

Source

const static Cmd makeHover()

Makes a PCMD cmd.

makeKeepAlive

Source

const static Cmd makeKeepAlive()

Makes a COMWDG cmd.

makeLand

Source

const static Cmd makeLand()

Makes a REF cmd.

makeMove

Source

const 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

const static Cmd makePlayAnim(Int animNo, Duration duration)

Makes an ANIM cmd.

makePlayLed

Source

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

Makes a LED cmd.

makeTakeOff

Source

const 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.