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.