mavros_examples.flight_task_control module
- class mavros_examples.flight_task_control.TaskControl(*args: Any, **kwargs: Any)
Bases:
NodeControl node.
- arm() bool
Arm the quadcopter.
- disarm() bool
Disarm the quadcopter.
- land() bool
Land the quadcopter.
- set_home_current() bool
Set home position to current location.
- set_mode(mode: str) bool
Set flight mode.
Common modes: STABILIZED, GUIDED, RTL, LAND
- takeoff(altitude: float) bool
Takeoff to specified altitude.
- Parameters:
altitude – in meters
- wait_for_services()
Wait for all services to be available.
- mavros_examples.flight_task_control.main(args=None)