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

Process the commands receives from Tello.Client.

Link to this section Summary

Link to this section Functions

Link to this function

process_command(command, from)

View Source
@spec process_command(
  String.t(),
  {:inet.ip_address(), :inet.port_number()}
) :: :ok | {:error, any()}

Process the command.

  1. Get Tello's current state from Tello.CyberTello.Memory
  2. Mutate state based on the command by Tello.CyberTello.Processor.ControlUnit
  3. Send result to from by Tello.CyberTello.Gateway