Takeoff vehicle to 3m above ground. Vehicle should not be moving when this API is used. It also clears any prior collision information by calling simGetCollisionInfo()
Read current RC state and use it to control the vehicles.Parameters sets up the constraints on velocity and minimum altitude while flying. If RC state is detected to violate these constraints
then that RC state would be ignored.
(DrivetrainType): when ForwardOnly, vehicle rotates itself so that its front is always facing the direction of travel. If MaxDegreeOfFreedom then it doesn’t do that (crab-like movement)
Roll angle, pitch angle, and yaw angle set points are given in radians, in the body frame.
The body frame follows the Front Left Up (FLU) convention, and right-handedness.
Frame Convention:
X axis is along the Front direction of the quadrotor.
| Clockwise rotation about this axis defines a positive roll angle.
| Hence, rolling with a positive angle is equivalent to translating in the right direction, w.r.t. our FLU body frame.
Y axis is along the Left direction of the quadrotor.
| Clockwise rotation about this axis defines a positive pitch angle.
| Hence, pitching with a positive angle is equivalent to translating in the front direction, w.r.t. our FLU body frame.
Z axis is along the Up direction.
| Clockwise rotation about this axis defines a positive yaw angle.
| Hence, yawing with a positive angle is equivalent to rotated towards the left direction wrt our FLU body frame. Or in an anticlockwise fashion in the body XY / FL plane.
Roll angle, pitch angle, and yaw angle are given in degrees when using PX4 and in radians when using SimpleFlight, in the body frame.
The body frame follows the Front Left Up (FLU) convention, and right-handedness.
Frame Convention:
X axis is along the Front direction of the quadrotor.
| Clockwise rotation about this axis defines a positive roll angle.
| Hence, rolling with a positive angle is equivalent to translating in the right direction, w.r.t. our FLU body frame.
Y axis is along the Left direction of the quadrotor.
| Clockwise rotation about this axis defines a positive pitch angle.
| Hence, pitching with a positive angle is equivalent to translating in the front direction, w.r.t. our FLU body frame.
Z axis is along the Up direction.
| Clockwise rotation about this axis defines a positive yaw angle.
| Hence, yawing with a positive angle is equivalent to rotated towards the left direction wrt our FLU body frame. Or in an anticlockwise fashion in the body XY / FL plane.
Roll angle, pitch angle, and yaw rate set points are given in radians, in the body frame.
The body frame follows the Front Left Up (FLU) convention, and right-handedness.
Frame Convention:
X axis is along the Front direction of the quadrotor.
| Clockwise rotation about this axis defines a positive roll angle.
| Hence, rolling with a positive angle is equivalent to translating in the right direction, w.r.t. our FLU body frame.
Y axis is along the Left direction of the quadrotor.
| Clockwise rotation about this axis defines a positive pitch angle.
| Hence, pitching with a positive angle is equivalent to translating in the front direction, w.r.t. our FLU body frame.
Z axis is along the Up direction.
| Clockwise rotation about this axis defines a positive yaw angle.
| Hence, yawing with a positive angle is equivalent to rotated towards the left direction wrt our FLU body frame. Or in an anticlockwise fashion in the body XY / FL plane.
Roll angle, pitch angle, and yaw rate set points are given in radians, in the body frame.
The body frame follows the Front Left Up (FLU) convention, and right-handedness.
Frame Convention:
X axis is along the Front direction of the quadrotor.
| Clockwise rotation about this axis defines a positive roll angle.
| Hence, rolling with a positive angle is equivalent to translating in the right direction, w.r.t. our FLU body frame.
Y axis is along the Left direction of the quadrotor.
| Clockwise rotation about this axis defines a positive pitch angle.
| Hence, pitching with a positive angle is equivalent to translating in the front direction, w.r.t. our FLU body frame.
Z axis is along the Up direction.
| Clockwise rotation about this axis defines a positive yaw angle.
| Hence, yawing with a positive angle is equivalent to rotated towards the left direction wrt our FLU body frame. Or in an anticlockwise fashion in the body XY / FL plane.
Roll rate, pitch rate, and yaw rate set points are given in radians, in the body frame.
The body frame follows the Front Left Up (FLU) convention, and right-handedness.
Frame Convention:
X axis is along the Front direction of the quadrotor.
| Clockwise rotation about this axis defines a positive roll angle.
| Hence, rolling with a positive angle is equivalent to translating in the right direction, w.r.t. our FLU body frame.
Y axis is along the Left direction of the quadrotor.
| Clockwise rotation about this axis defines a positive pitch angle.
| Hence, pitching with a positive angle is equivalent to translating in the front direction, w.r.t. our FLU body frame.
Z axis is along the Up direction.
| Clockwise rotation about this axis defines a positive yaw angle.
| Hence, yawing with a positive angle is equivalent to rotated towards the left direction wrt our FLU body frame. Or in an anticlockwise fashion in the body XY / FL plane.
Roll rate, pitch rate, and yaw rate set points are given in radians, in the body frame.
The body frame follows the Front Left Up (FLU) convention, and right-handedness.
Frame Convention:
X axis is along the Front direction of the quadrotor.
| Clockwise rotation about this axis defines a positive roll angle.
| Hence, rolling with a positive angle is equivalent to translating in the right direction, w.r.t. our FLU body frame.
Y axis is along the Left direction of the quadrotor.
| Clockwise rotation about this axis defines a positive pitch angle.
| Hence, pitching with a positive angle is equivalent to translating in the front direction, w.r.t. our FLU body frame.
Z axis is along the Up direction.
| Clockwise rotation about this axis defines a positive yaw angle.
| Hence, yawing with a positive angle is equivalent to rotated towards the left direction wrt our FLU body frame. Or in an anticlockwise fashion in the body XY / FL plane.
Modifying these gains will have an affect on ALL move*() APIs.
This is because any velocity setpoint is converted to an angle level setpoint which is tracked with an angle level controllers.
That angle level setpoint is itself tracked with and angle rate controller.
This function should only be called if the default angle rate control PID gains need to be modified.
Sets angle level controller gains (used by any API setting angle references - for ex: moveByRollPitchYawZAsync(), moveByRollPitchYawThrottleAsync(), etc)
Modifying these gains will also affect the behaviour of moveByVelocityAsync() API.
This is because the airgen flight controller will track velocity setpoints by converting them to angle set points.
This function should only be called if the default angle level control PID gains need to be modified.
Passing AngleLevelControllerGains() sets gains to default airgen values.
Sets position controller gains for moveByPositionAsync.
This function should only be called if the default position control PID gains need to be modified.