This site is being deprecated.

Please see the official X‑Plane Support page for help.

0 votes
asked by (34 points)
ASK-21 wheel brake behaves wrong.

In real life the wheel brake is activated by pulling brake lever against end stop.

In X-Plane the wheel brake seem to be on if speed brakes are out even a little. If brakes are closed, the wheel brake is not active.
commented by (34 points)
Workaround:

Assign wheel brake to left toe brake, then edit ask21_basics.lua in the airplane directory to contain:

startup_running = find_dataref("sim/operation/prefs/startup_running")
battery_on = find_dataref("sim/cockpit2/electrical/battery_on[0]")
avionics_power_on = find_dataref("sim/cockpit2/switches/avionics_power_on")
speedbrake_ratio = find_dataref("sim/cockpit2/controls/speedbrake_ratio")
left_brake_ratio = find_dataref("sim/cockpit2/controls/left_brake_ratio")
parking_brake_ratio = find_dataref("sim/cockpit2/controls/parking_brake_ratio")
radio_altimeter_height_ft_pilot = find_dataref("sim/cockpit2/gauges/indicators/radio_altimeter_height_ft_pilot")

actual_parking_brake_ratio = 0
actual_speedbrake_ratio = 0

--------------------------------- DO THIS EACH FLIGHT START ---------------------------------
function flight_start()
    if startup_running == 1 then
        battery_on = 1
        avionics_power_on = 1
        parking_brake_ratio = 1
        speedbrake_ratio = 1
        left_brake_ratio = 1
    else
        battery_on = 0
        avionics_power_on = 0
        parking_brake_ratio = 1
        speedbrake_ratio = 1
        left_brake_ratio = 1
    end
    -- IF START IS NOT ON THE GROUND THEN SPOILERS AND BRAKES OFF
    if radio_altimeter_height_ft_pilot > 10 then
        parking_brake_ratio = 0
        speedbrake_ratio = 0
        left_brake_ratio = 0
    end
end

--------------------------------- REGULAR RUNTIME ---------------------------------

function after_physics()
    parking_brake_ratio = left_brake_ratio
end

Please log in or register to answer this question.

...