Copilot: use stopwatch.

parent 3bc516ba
......@@ -239,6 +239,10 @@ var _loop = func {
do(func{
Tu144.Stopwatch(1, 1);
});
} else if(rolling < _rolling){
do(func{
Tu144.Stopwatch(1, 2);
});
}
if(rolling and !braking){
......@@ -306,7 +310,6 @@ var _loop = func {
if(gear_callout == "gear_in"){
settimer(func{
do(func{
Tu144.Stopwatch(1, 2);
# Tu144.GearCmd(0);
Tu144.Frontlight(0);
Tu144.IntlightsDefault();
......
......@@ -823,7 +823,7 @@ IntlightsOff = func () {
# @param window Window number. 0: Left; 1: Right.
# @param cmd Command norm (0.0 .. 1.0).
Window = func(window, cmd) {
setprop("fdm/jsbsim/systems/doors/window[" ~ door ~ "]/cmd-norm", cmd);
setprop("fdm/jsbsim/systems/doors/window[" ~ window ~ "]/cmd-norm", cmd);
}
# @brief Set all windows' command at once
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment