How to set the landing heading to match the take-off heading when startGoHome after updating goHomeLocation
CompletedHello. When the home location is set mid flight via:
FlightControllerKey.KeyHomeLocation.create().set(LocationCoordinate2D(lat, lon), {
LogsHelper.log("got returntohome: KeyHomeLocation Set: $lat, $lon")
goHome()
}, ) {
it.description()?.let { errorDescription ->
LogsHelper.log("Error in startGoHome: Set Home Location failed: $errorDescription")
}
}
And then return to home is called:
FlightControllerKey.KeyStartGoHome.create().action {
it.description()?.let { errorDescription ->
LogsHelper.log("Error in startGoHome: $errorDescription")
}
}
The drone returns home, but its heading doesn't return to the same heading as when it took off before landing. Is this expected behaviour? Or is there some way the drone's landing heading can be set?
Tested on Mavic 3 Enterprise in real life and in DJI Assistant simulator.
Please sign in to leave a comment.
Comments
1 comment