Skip to content

Commit e7fcdee

Browse files
committed
fix: add safety margin to stall limit
Signed-off-by: Octol1ttle <[email protected]>
1 parent 5e455ff commit e7fcdee

File tree

1 file changed

+1
-1
lines changed
  • src/main/kotlin/ru/octol1ttle/flightassistant/impl/computer/safety

1 file changed

+1
-1
lines changed

src/main/kotlin/ru/octol1ttle/flightassistant/impl/computer/safety/StallComputer.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class StallComputer(computers: ComputerBus) : Computer(computers), FlightControl
4747
override fun <Response> handleQuery(query: ComputerQuery<Response>) {
4848
if (query is PitchComputer.MaximumPitchQuery && maximumSafePitch <= 90.0f && !computers.data.fallDistanceSafe) {
4949
query.respond(ControlInput(
50-
maximumSafePitch,
50+
maximumSafePitch - 5.0f,
5151
Component.translatable("mode.flightassistant.vertical.stall_protection"),
5252
ControlInput.Priority.HIGHEST,
5353
1.5f,

0 commit comments

Comments
 (0)