refactor(navigator): end the fixed-wing climbout on the reported takeoff status

Both the Navigator and the mode manager decided when the climbout was over,
each by comparing an altitude of its own. They only agreed because they read
the same number.

Report the end of the climbout from the mode manager and act on it in
the Navigator, so that it is decided in one place. No behaviour change with
the default parameters.

Signed-off-by: mahima-yoga <mahima@auterion.com>
This commit is contained in:
mahima-yoga authored and Silvan Fuhrer committed 2026-08-28 17:43:33 +02:00
1 parent a3189c5379
commit 22da2cb891
9 files changed
+62 -3

No files matched your search

+6
View File
@@ -0,0 +1,6 @@
# Status of a fixed-wing takeoff
# Passes information from the FixedWingModeManager to the Navigator.
uint64 timestamp # [us] time since system start
bool climbout_completed # Whether the takeoff climbout is finished (altitude, or time if FW_TKO_CLMB_T is set)