[Android] Detecting when Virtual Stick refuses to move due to Obstacle Avoidance

Completed

Comments

4 comments

  • DJI Developer Support
    We do not have a Key to listen for the aircraft's imminent braking status. The aircraft should start decelerating when the obstacle distance reaches the ObstacleAvoidanceWarningDistance. Have you confirmed this in actual testing? I am also in communication with the team to see if there are other ways to confirm the aircraft's imminent braking. Thank you.
    0
    Comment actions Permalink
  • Ljustice

    The ObstacleAvoidanceWarningDistance was set to 15m but the drone only seemed to react differently when approaching the ObstacleAvoidanceBrakingDistance of 1m. The drone consistently stopped before reaching the 1m distance. I'm not sure exactly how far this was. The obstacle avoidance itself seems to be working with no issue. I just wanted to know if there is any good way of observing when the braking status. Be sure to keep me updated when the team gets back to you. Thanks!

    0
    Comment actions Permalink
  • DJI Developer Support
    Please wait for a while as I am currently verifying this information with the team.
    0
    Comment actions Permalink
  • DJI Developer Support
    I appreciate your patience. Currently, there is no way to obtain the status of the aircraft braking in the Mavic 3 Enterprise series. However, the aircraft's flight mode may change. You can monitor FlightControllerKey.KeyFlightMode. When the aircraft is braking, the FlightMode may change to APAS or AUTO_AVOIDANCE. Additionally, if you need to control the aircraft to approach obstacles, you may need to consider setting ObstacleAvoidanceBrakingDistance to the minimum value or even directly disabling the obstacle avoidance function. Please ensure flight safety in this scenario.
    0
    Comment actions Permalink

Please sign in to leave a comment.