Class RcApi
Remote Control API used for interaction with the drone
Properties:
nav: DroneNavAPI
Handles drone movements
rgb: DroneRGBLedApi
Handles interactions with Drone RGB LEDs
bottom_flash_led: DroneBottomFlashLedApi
Handles interactions with Drone Bottom Flash LED
Methods:
__init__
python
def __init__(
drone_ip,
drone_port,
debug=False
)Initialize self. See help(type(self)) for accurate signature.
Params:
- drone_ip: Any
- drone_port: Any
- debug: Any = False
get_next_telemetry_update
python
def get_next_telemetry_update()Wait for the telemetry thread to update telemetry data and return the value.
Returns:
python
NoneAn instance of DroneTelemetry containing all telemetry data.
send_command
python
def send_command(
command: dict
)Send a command to the server.
Params:
- command: dict
start
python
def start()Start the telemetry receiving thread.
stop
python
def stop()Stop the telemetry receiving thread.