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.

Welcome to X-Plane Q&A, where you can ask support questions and get answers from members of the community.

This site is for X-Plane support questions only. Please search for existing answers before posting your question. Off-topic questions will be locked.

If you’re new, you’ll need to register before asking your first question.

If your question is answered, click on the check mark to select the best response.

Categories

...