起飞任务条件不生效(电量,存储容量)
Completed在SDK的FlightTaskServiceImpl的 prepareFlightTask 中,下发的任务参数:其中readyCondition的beginTime和endTime设置为当前的系统时间,batteryCapacity设置为95,此时无人机电量为87,但是无人机仍然能正常起飞
flightTask.setReadyConditions(waylineJob.getConditions().getReadyConditions());
flightTask.setExecutableConditions(waylineJob.getConditions().getExecutableConditions());
log.info("准备发送指令 flighttask_prepare 到设备:{},参数:{}", waylineJob.getDockSn(), flightTask);
TopicServicesResponse<ServicesReplyData> serviceReply = abstractWaylineService.flighttaskPrepare(
SDKManager.getDeviceSDK(waylineJob.getDockSn()), flightTask);
-
尊敬的开发者, 您好,感谢您联系DJI 大疆创新。 请问获取无人机电量是通过哪个字段获取的? https://developer.dji.com/doc/cloud-api-tutorial/cn/api-reference/dock-to-cloud/mqtt/aircraft/m3d-properties.html 希望我们的解决方案能够帮到您,感谢您的邮件,祝您生活愉快! Best Regards, DJI 大疆创新SDK技术支持 -
看了下无人机的osd里面battery结构,百分比都是一样的,而且我起飞任务条件设置到95,这个应该是会触发不起飞的,是否因为固件版本太低
"battery": {"@class": "com.senxu.uav.app.thirdparty.dji.sdk.cloudapi.device.DroneBattery","batteries": ["java.util.ArrayList",[{"@class": "com.senxu.uav.app.thirdparty.dji.sdk.cloudapi.device.Battery","firmware_version": "26.03.00.44","index": 0,"loop_times": 103,"capacity_percent": 78,"sn": "6Q7P***00JS","sub_type": 0,"temperature": 45.2,"type": 0,"voltage": 15679,"high_voltage_storage_days": 24}]],"capacity_percent": 78,"landing_power": 8,"remain_flight_time": 1865,"return_home_power": 27}
Please sign in to leave a comment.
Comments
6 comments