Skip to content

Commit df3763b

Browse files
committed
change(DontSinkAlert): reduce sensitivity
Signed-off-by: Octol1ttle <[email protected]>
1 parent 0b98f10 commit df3763b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/ru/octol1ttle/flightassistant/impl/alert/gpws/DontSinkAlert.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class DontSinkAlert(computers: ComputerBus) : Alert(computers), CenteredAlert {
2525
return false
2626
}
2727
if ((computers.plan.currentPhase == FlightPlanComputer.FlightPhase.TAKEOFF || computers.plan.currentPhase == FlightPlanComputer.FlightPhase.GO_AROUND)
28-
&& !computers.data.fallDistanceSafe && computers.data.velocity.y < 0) {
28+
&& !computers.data.fallDistanceSafe && computers.data.velocityPerSecond.y <= -1.0) {
2929
age += FATickCounter.ticksPassed
3030
} else {
3131
age = 0

0 commit comments

Comments
 (0)