Applies to models: M210 series, M210 V2 series, M100, M600 Pro, A3, N3
SDK version: OSDK3.7 & OSDK3.8
To control the speed of your drone call the VelocityAndYawRateCtrl() function. Use the function in a loop, as it can not be called only once. Here is a sample loop:
for(int i=0;i<999;i++)
{
vehicle->control->velocityAndYawRateCtrl(Xv,Yv,Zv,Rr);
usleep(200000));
}
Note: The cycle frequency cannot exceed 50Hz
Comments
0 comments
Please sign in to leave a comment.