关键词:waypoint v2 航点任务状态
waypoint V2有提供对应的回调函数RegisterMissionEventCallback、RegisterMissionStateCallback,可以参考示例代码中的调用方式:
WaypointV2MissionSample::WaypointV2MissionSample(Vehicle *vehicle):vehiclePtr(vehicle){
vehiclePtr->waypointV2Mission->RegisterMissionEventCallback(vehicle->waypointV2Mission, updateMissionEvent);
vehiclePtr->waypointV2Mission->RegisterMissionStateCallback(vehicle->waypointV2Mission, updateMissionState);
}
评论
0 条评论
请登录写评论。