Skip to content

Commit 5e455ff

Browse files
committed
fix: don't bail out in lateral mode when flight phase is unknown
Signed-off-by: Octol1ttle <[email protected]>
1 parent ca1c29e commit 5e455ff

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/main/kotlin/ru/octol1ttle/flightassistant/impl/computer/autoflight/FlightPlanComputer.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,6 @@ class FlightPlanComputer(computers: ComputerBus) : Computer(computers) {
195195

196196
fun getLateralMode(): AutoFlightComputer.LateralMode? {
197197
return when (currentPhase) {
198-
FlightPhase.UNKNOWN -> null
199198
FlightPhase.TAKEOFF -> {
200199
val target: EnrouteWaypoint = getEnrouteTarget() ?: return null
201200
TrackNavigationLateralMode(departureData.coordinatesX, departureData.coordinatesZ, target.coordinatesX, target.coordinatesZ)

0 commit comments

Comments
 (0)