Why is IPerceptionManager empty?
已完成I am currently creating an obstacle avoidance program using DJI Mini3 Pro and DJI RC PRO. The SDK version is 5.7.1.
I called ObstacleData{horizontalObstacleDistance=[], upwardObstacleDistance=0, downwardObstacleDistance=0, horizontalAngleInterval=0} of class IPerceptionManager, but they were all null or 0.
import dji.v5.manager.aircraft.perception.data.ObstacleData
val horizontalObstacleDistance = ObstacleData()
When I checked the definition file, I found the following program.
public List<Integer> getHorizontalObstacleDistance() {
return null;
}
public int getUpwardObstacleDistance() {
return 0;
}
I think this will naturally return null or 0.
There is an explanation in the API reference, so I assume it is not an unimplemented feature, but does this feature need to be overridden somewhere?
thank you.
-
Thanks for the quick reply!
I eagerly await the API update.By the way, the aforementioned definition code is the code of the API decompiled in AndroidStudio, so I am not sure if it is complete or not.
If this return null is as the API is designed, it seems to cause similar problems for other aircraft that are not DJIMIni3Pro.I am currently facing similar problems with other implementations such as DoublePoint2D. Is this an inherent specification of the API, a function that will be implemented in the future but is currently empty, or is this not the case?
In some cases I would like to consider other options such as version 4 of the API.
-
I'm very interested in this post.
We have the same situation with our BUSINESS PRODUCTION using DJI Mini 3 Pro.
ObstacleData method returns null.Please tell me exactly if there is a problem with the method.
Do I need to initialize any managers before using the method?It is unlikely that DJI Mini 3 Pro issues are affecting the method.
If there is only a problem with a particular product, it should be returned as an error.
请先登录再写评论。
评论
4 条评论