Howto:Implement a Fly-By-Wire System for Airliners: Difference between revisions

m
→‎/Nasal/fbw.nas: remove redundant code
m (→‎/Nasal/fbw.nas: move the throttles vector initialization into the init func)
m (→‎/Nasal/fbw.nas: remove redundant code)
Line 240: Line 240:


if (me.targetthrottle > me.throttles[0]) {
if (me.targetthrottle > me.throttles[0]) {
me.throttles[0] += INCREMENT * me.fpsfix;
me.inc_throttles();
me.throttles[1] += INCREMENT * me.fpsfix;
} elsif (me.targetthrottle < me.throttles[0]) {
} elsif (me.targetthrottle < me.throttles[0]) {
me.throttles[0] -= INCREMENT * me.fpsfix;
me.dec_throttles();}  
me.throttles[1] -= INCREMENT * me.fpsfix;
}  


}
}