[MSDK 5.6.0] [BUG] WaylineMissionConfig - setSecurityTakeOffHeight not working
已完成Hi,
This is the code:
WaylineMissionConfig config = new WaylineMissionConfig();
config.setFlyToWaylineMode(flyToWaylineMode);
config.setFinishAction(waylineFinishedAction);
config.setDroneInfo(droneInfo);
config.setSecurityTakeOffHeight(securityTakeOffHeight);
config.setIsSecurityTakeOffHeightSet(true);
config.setExitOnRCLostBehavior(exitOnRCLostBehavior);
config.setExitOnRCLostType(waylineExitOnRCLostAction);
config.setGlobalTransitionalSpeed(globalTransitionalSpeed);
List<WaylinePayloadInfo> payloadInfos = new ArrayList<>();
payloadInfos.add(payloadInfo);
config.setPayloadInfo(payloadInfos);
return config;
This is the missionConfig part in the generated WPML file:
<wpml:missionConfig> <wpml:flyToWaylineMode>pointToPoint</wpml:flyToWaylineMode> <wpml:finishAction>goHome</wpml:finishAction> <wpml:exitOnRCLost>goContinue</wpml:exitOnRCLost> <wpml:globalTransitionalSpeed>12</wpml:globalTransitionalSpeed> <wpml:droneInfo> <wpml:droneEnumValue>77</wpml:droneEnumValue> <wpml:droneSubEnumValue>2</wpml:droneSubEnumValue> </wpml:droneInfo> <wpml:payloadInfo> <wpml:payloadEnumValue>68</wpml:payloadEnumValue> <wpml:payloadSubEnumValue>0</wpml:payloadSubEnumValue> <wpml:payloadPositionIndex>1</wpml:payloadPositionIndex> </wpml:payloadInfo> </wpml:missionConfig>
As you can see, securityTakeOffHeight field is not set.
请先登录再写评论。
评论
2 条评论