View Source Tello.CyberTello.Processor.ControlUnit (Tello v0.1.0)

The control unit for Tello.CyberTello.Processor.

Link to this section Summary

Functions

Mutate the state based on the command.

Link to this section Functions

Link to this function

process_command(state, arg2)

View Source
@spec process_command(Tello.CyberTello.State.t(), String.t()) ::
  {:ok, Tello.CyberTello.State.t()} | {:error, any()}

Mutate the state based on the command.

Returns new Tello.CyberTello.State.