Class TelloStateReceiver

Class Documentation

class TelloStateReceiver

Public Functions

TelloStateReceiver(const std::string &state_ip = "0.0.0.0", const int port_state = 8890)

Construct a new TelloStateReceiver object Note: Send a command before calling this constructor to make Tello start sending state.

Parameters:
  • state_ip – IP of the host to receive the state

  • port_state – Port of the host to receive the state

~TelloStateReceiver()

Destroy the TelloStateReceiver object.

const TelloState &getTelloState()

Get the drone state non-blocking. If not received, return the last state received.

Returns:

TelloState State of the drone

const std::string &getTelloStateString()

Get the drone state as a string Note, getTelloState() method must be called before this method to update the state.

Returns:

std::string State of the drone as a string