[SDK 5.8.0] Catching the moment when an aircraft returns home due to low battery charge
CompletedI've encountered an issue with WaypointMissionManager. If I run a mission with an aircraft having let's say 23 percent of the battery charge, the aircraft may return home on its own which during the mission is nice. So I thought that it's possible to catch that moment in the WaylineExecutingInfoListener in the onWaylineExecutingInterruptReasonUpdate to notify the user. And in some of those cases I get an error in onWaylineExecutingInterruptReasonUpdate with
errorType: 'WAYPOINT', errorCode: 'NO_ERROR', innerCode: '0', description: 'null', hint: ''
but sometimes I get nothing. The behavior of WaypointMissionExecuteStateListener is flaky too, sometimes I get mission state equals INTERRUPTED and sometimes FINISHED right after EXECUTING, when battery is low. Is there a way to catch moment when the aircraft decides that it's time to go home because of the low battery charge? If yes, can I use WaylineExecutingInfoListener to do that reliably?
-
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?
Please sign in to leave a comment.
Comments
3 comments