[SDK 5.8.0] Catching the moment when an aircraft returns home due to low battery charge

Completed

Comments

3 comments

  • DJI Developer Support
    We kindly suggest considering upgrading to MSDK version 5.9 to benefit from the optimized error messages related to flight routes.
    0
    Comment actions Permalink
  • Sergey Gorodetsky

    Thank you for your reply. We tried the same scenario with the SDK 5.9 and got similar results. The difference is that every time we tried to reproduce the issue, the mission status was changed from EXECUTING to FINISHED, we didn't get INTERRUPTED status and onWaylineExecutingInterruptReasonUpdate has never been called. We don't know whether that behavior changed in some way between SDK versions due to the random nature of the results, is onWaylineExecutingInterruptReasonUpdate supposed to be called when an aircraft stops the mission and returns home due to low battery charge, and if not, then is there a way to catch that event?

    0
    Comment actions Permalink
  • DJI Developer Support
    It is recommended to utilize the FlightControllerKey.KeyLowBatteryRTHInfo to monitor the LowBatteryRTHInfo.getLowBatteryRTHStatus for retrieval.
    0
    Comment actions Permalink

Please sign in to leave a comment.