enum classafParrotSdk2::ExitStrategy

sys::Obj
  sys::Enum
    afParrotSdk2::ExitStrategy

@Serializable { simple=true }

Governs what the drone should do if the program exists whilst flying. Default is land.

crashLand

Source

const static ExitStrategy crashLand := ...

Cuts the drone's engines, forcing a crash landing.

fromStr

Source

static new fromStr(Str name, Bool checked := true)

Return the ExitStrategy instance for the specified name. If not a valid name and checked is false return null, otherwise throw ParseErr.

hover

Source

const static ExitStrategy hover := ...

Sends a stop() command.

land

Source

const static ExitStrategy land := ...

Sends a land() command.

nothing

Source

const static ExitStrategy nothing := ...

Do nothing, let the drone continue doing whatever it was last told to do.

vals

Source

const static ExitStrategy[] vals := ...

List of ExitStrategy values indexed by ordinal