AirGenDrone
class provides an interface to the underlying vehicle simulation.
moveByVelocityAsync
method takes four parameters:
vx
: Velocity in the X direction (east/west)vy
: Velocity in the Y direction (north/south)vz
: Velocity in the Z direction (up/down)duration
: Time to maintain this velocity in secondsmoveToPositionAsync
method takes four parameters:
x, y, z
: Target position coordinatesvelocity
: Speed at which to move to the target positionmoveOnPathAsync
method is more complex and takes several parameters:
waypoints
: List of Vector3r points defining the pathvelocity
: Speed in m/stimeout_sec
: Maximum time to complete the operationdrivetrain
: Control mode for the drone’s movementyaw_mode
: Controls how the drone’s heading changes during flightlookahead
: Distance to look ahead on the pathadaptive_lookahead
: Whether to adapt the lookahead distance based on velocityForwardOnly
, the drone will automatically adjust its yaw to face the direction of travel, similar to how an airplane flies.