Keywords: OSDK waypoint mission v1, parameters settings
The waypoint mission and actions execute failed, and the parameter setting is wrong, please refer to the following settings: (the waypoint action controls the pitch rotation of the gimbal)
void
setWaypointDefaults(WayPointSettings* wp)
{
wp->damping = 0; //Coordinate turning radius, corresponding to turn mode, when turnMode is set to 1, the minimum value is 0.2
wp->yaw = 0;
wp->gimbalPitch = 0;
wp->turnMode = 0;
wp->hasAction = 1; //When there is an upload action, the task needs to be set to 1
wp->actionTimeLimit = 100; //The time for the waypoint to execute the task. If there are too many tasks, the time setting is too short, and the task may not be completed.
wp->actionNumber = 5;
wp->actionRepeat = 1; //The number of mission executions. When set to 0, the waypoint mission will not be executed.
for (int i = 0; i <2; ++i)
{
wp->commandList[0] = WP_ACTION_GIMBAL_PITCH;
wp->commandParameter[0] = 0;
wp->commandList[1] = WP_ACTION_GIMBAL_PITCH;
wp->commandParameter[0] = -90;
}
}
Note: This article is from Chinese and is translated by machine. If there is any suggestions, please point it out and we will correct it in time
Comments
0 comments
Please sign in to leave a comment.