IskenderWang / 787-family

787 family for FlightGear, after merging legoboyvdlp's abandoned -9 with the FGAddon -8
GNU General Public License v2.0
26 stars 7 forks source link

Use autobrake knob with scrollwheel + auto-deactivate autobrakes #84

Closed nico-castell closed 1 year ago

nico-castell commented 1 year ago

The autobrake knob could only be used with the left click, when it could also be used with the scroll-wheel.

This PR makes that possible, and knob won't repeat the settings using the scrollwheel so you can't go from RTO to Autobrake MAX by accident if you scroll down, just like you won't go from Autobrake MAX to RTO by scrolling up.

I also did some formatting for clarity and coding in the autobrake.nas file to auto-deactivate the automatic brakes after rollout and/or after takeoff.

nico-castell commented 1 year ago

I rewrote the autobrake.nas file to accomodate as many of the requirements of the manual as possible.

The manual does give a use to the DISARM setting, it's essentially the autobrake's way of saying it has automatically disarmed the autobrake system.

The autobrake system disarms under the following conditions:

  1. Throttle increases after landing.
  2. The user applies more brakes with the pedals than the autobrake system.
  3. The speedbrake lever is moved to the down position after landing.
  4. If the knob is in the RTO position, it will set itself back to OFF after takeoff.

AUTOBRAKE MAX will only apply AUTOBRAKE 4 until the nose wheel touches the ground, then it will apply maximum braking pressure.

The autobrake system will keep the brakes pressed until:

  1. The aircraft comes to a complete stop.
  2. The knob is moved to the OFF position.
  3. The system disarms automatically or the knob is moved to the DISARM position.

If you come to a complete stop, you will need to tap the brake pedals to reset the brake pressure to 0.

nico-castell commented 1 year ago

Update: I think it's worth giving some clarity to all the changes since my last comment, my last comment is still valid, and these are the new things:

The first thing is the new rejected takeoff detection logic, which is now based on the manual's specifications, and dictates that the autobrake system will apply full braking pressure when the selector is in the RTO position and:

  1. The plane is on the ground.
  2. The groundspeed is greater than 85 kt.
  3. The throttle is set to idle.

There is new logic for the automatic speedbrake deployment, also based on the manual.

When the lever is in the ARMED position (Key binding: Ctrl-k), the spoilers will automatically deploy when the plane is on the ground and both thrust levers are below 50%.

When the speedbrake lever is not in ARMED, the spoilers will still deploy in the following scenarios:

  1. Plane on the ground, and both thrust reversers deployed.
  2. Plane on the gound, groundspeed greater than 85 kt, either throttle lever is moved from above 50% to below 50% (rejected takeoff).

The automatic speedbrakes will retract when the plane is on the ground and either throttle lever is above 50%. This is meant to ensure safe takeoffs and go arounds after landing.

Additionally, the autobrake knob was updated with the option to right click it to set it to the OFF position.

There were also many changes that involved simplifying the code, and improving reliability.

It's worth noting that you'll have to manually retract the speedbrake after landing (by using Ctrl-b), this is by design, it's not a bug. Real life 787 pilots have to do this.