dji-sdk / Mobile-SDK-Android

DJI Mobile SDK for Android: http://developer.dji.com/mobile-sdk/
Other
973 stars 579 forks source link

Inconsistent Flight Assistant Keys #282

Open Djacob502 opened 6 years ago

Djacob502 commented 6 years ago

Using 4.5 sdk the Flight Assistant Keys are being reported inconsistently. For instance: FlightControllerKey.createFlightAssistantKey(FlightControllerKey.VISION_DETECTION_STATE and FlightControllerKey.createFlightAssistantKey(FlightControllerKey.LANDING_PROTECTION_STATE will not reliably report their states.

Landing_Protection_State does report that it is analyzing the landing but never does it report that it is not safe to land even when the drone stops it's landing routine which is the value that I'm looking for.

Vision_Detection_State -> vision system warning - 99% of the time reports that the reading is invalid even though the drone has stopped because it is too close to a wall. Occasionally, if I move the drone towards the wall several times and have it stop will the vision system warning report as dangerous.

Vision_Detection_State -> getObstacleDistanceInMeters always reports 0.0 regardless of how close the drone is to a wall.

Vision_Detection_State -> isSensorBeingUsed reports as false 99% of the time and only occasionally will change to true even when a drone is stopped because it is too close to a wall.

DJI sdk 4.5 android studio 3.2.1 crystal sky - latest firmware phantom 4 pro - latest firmware.

wenqianqiao commented 6 years ago

The left and right sensors can only be available when the Mode is in Beginner mode and the Tripod mode . Please make sure whether in these two states. Please make sure the light condition is sufficient for the downward vision system. The state changed very quickly, please help to print the state.

Jim-DJI commented 5 years ago

@Djacob502 Hi, thanks for your feedback. Please help to give me more details, when following the recommendations of @wenqianqiao. Thanks again. BTW, you could report the issue to dev@dji.com it's the official channel to request DJI SDK support now.