Waypoint V2 Distance Interval not triggering at specified interval
已完成The SDK does not seem to be taking photos at the specified distance interval. After running a few tests with different distances it's taking a quarter of the photos that it should.
E.g. If a flight line between two waypoints is 200m and I set the interval to be 4m the camera should take around 50 photos but instead I get 12.
I ran this a few times on different flights with different path lengths and photo distance intervals. It seems to be increasing the distance interval by a factor of 4.
Am I doing something wrong?
iOS SDK 4.15.2
M300 with P1 camera
Actuator
- DJIWaypointV2ActionActuatorTypeCamera
- with DJIWaypointV2CameraActuatorParam
- operationType is DJIWaypointV2ActionActuatorCameraOperationTypeTakePhoto
Trigger
- DJIWaypointV2ActionTriggerTypeInterval
- DJIWaypointV2IntervalTriggerParam
- actionIntervalType = DJIWaypointV2ActionIntervalTypeDistance
-
Thanks for your reply. I think I found the cause of the issue. After further testing it seems like the enums DJIWaypointV2ActionIntervalTypeDistance and DJIWaypointV2ActionIntervalTypeTime have potentially been mixed up in the SDK.
If I configure an action to shoot photos at intervals between two waypoints with DJIWaypointV2ActionIntervalTypeDistance as the actionIntervalType and pass it a value of 6 as the interval. Instead of taking photos every 6 metres it takes a photo every 6 seconds.
If I do the reverse, set the interval type to time and pass a value of 6, photos are taken every 6 metres instead of every 6 seconds.
-
I have tested it here, and I set it as 12m distance interval trigger for shooting single photo, and the speed is set as 2m/s, it works well. And if I set it as 6m distance interval trigger, if the speed is 1m/s, it would work as well. If the speed set too large, the Camera could not be stable for taking photos. As we mentioned in previous mail, the Camera need times to shoot and handle the photo, so if the aircraft moves too fast between the 2 interval point, the take photo action will be affected. If your distance interval value is too small, the flight speed also should be small. As you mentioned that you set it as distance, but actually the time interval trigger, the issue does not exist, as my test result, the 12m distance interval trigger and 2m/s flight speed, the photo taking interval is 6 seconds.
请先登录再写评论。
评论
3 条评论