Copilot: more reliable logic for lights.

parent 5aefc639
......@@ -238,10 +238,15 @@ var _loop = func {
say("rolling", 1.5);
do(func{
Tu144.Stopwatch(1, 1);
Tu144.Frontlight(1);
Tu144.IntlightsTOL();
Tu144.Window(1, 0.0);
});
} else if(rolling < _rolling){
do(func{
Tu144.Stopwatch(1, 2);
Tu144.Frontlight(-1);
Tu144.IntlightsDefault();
});
}
......@@ -522,18 +527,12 @@ var _loop = func {
}
if(WOW){
if(
(!frontlight and (readyfortaxi > _readyfortaxi)) or
(frontlight and (ready < _ready) and (Vind < 200.0))
){
if(readyfortaxi > _readyfortaxi){
do(func{
Tu144.Frontlight(-1);
Tu144.IntlightsDefault();
});
}else if(
(frontlight == -1) and
(readyfortaxi < _readyfortaxi)
){
}else if(readyfortaxi < _readyfortaxi){
do(func{
Tu144.Frontlight(0);
});
......
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