关键词:OSDK waypoint v1,参数示例
航点任务不执行,参数设置错误时,可以参考如下设置说明:(航点动作控制云台pitch转动)
void
setWaypointDefaults(WayPointSettings* wp)
{
wp->damping = 0; //协调转弯半径,与traceMode对应,traceMode设置为1时,最小值为0.2
wp->yaw = 0;
wp->gimbalPitch = 0;
wp->turnMode = 0;
wp->hasAction = 1; //有上传action时,任务时需要设置为1
wp->actionTimeLimit = 100; //航点执行任务的时间,任务较多时间设置太短,任务可能执行不完
wp->actionNumber = 5;
wp->actionRepeat = 1; //任务执行次数,设置为0时航点任务不执行。
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;
}
}
评论
0 条评论
请登录写评论。