-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RTL: fix RTL time estimation (#23807)
* RTL Direct: fix rlt time prediction in final lanidng phase It was previously checking if RTL was already running through active(), which though actually is coming from the mission mode that rtl_direct inherits from. Signed-off-by: Silvan Fuhrer <[email protected]> * RTL Direct: remove unnecessary active() check As the method setRtlPosition() is anyway not called when RTL is active, plus it checks the wrong thing, as it is the active() method from the Mission mode. Signed-off-by: Silvan Fuhrer <[email protected]> * RTL Direct: remove unnecessary land_detector_sub.update() It is already getting updated just before the .get() Signed-off-by: Silvan Fuhrer <[email protected]> * RTL time estiate: do not distinguish land from sink for MC To avoid rtl time prediction jump when entering LAND phase due to no correct handling of loiter altitude (LAND phase doesn't have to start only when lower then RTL_DESCND_ALT). Signed-off-by: Silvan Fuhrer <[email protected]> * Revert "RTL Direct: remove unnecessary active() check" This reverts commit d5165ba. * Revert "RTL Direct: fix rlt time prediction in final lanidng phase" This reverts commit 5af7c92. * RTL: Make sure to call the initialilze function of the Navigator RTL modes * RTL: use the navigator_mode run function instead of the on_xxx function directly * RTL: Make sure that for vtol the right vehicle type is used for each RTL state * RTL: move to loiter distance estimate should substract the loiter radius for fixed wing * RTL: time prediction: do not assume VTOL is in FW at start of RTL Signed-off-by: Silvan Fuhrer <[email protected]> * RTL: time estimation: fix is_in_climbing_submode Signed-off-by: Silvan Fuhrer <[email protected]> * RTL: time estimation: subtract loiter radius from distance in rtl_direct_mission_land Signed-off-by: Silvan Fuhrer <[email protected]> * RTL direct: poll important topics also on_inactive such that time estimate is correct Signed-off-by: Silvan Fuhrer <[email protected]> * navigator rtl: fix setter spacing * navigator rtl: check pointer before dereferencing * RTL: only subract loiter radius when in FW Signed-off-by: Silvan Fuhrer <[email protected]> --------- Signed-off-by: Silvan Fuhrer <[email protected]> Co-authored-by: Konrad <[email protected]> Co-authored-by: Matthias Grob <[email protected]>
- Loading branch information
1 parent
84bb6d1
commit 3b0dac6
Showing
7 changed files
with
93 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.