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

m
→‎/Nasal/fbw.nas: introduce new helpers to help increment/decrement throttles
m (→‎/Nasal/fbw.nas: localize use of 0.001 constant)
m (→‎/Nasal/fbw.nas: introduce new helpers to help increment/decrement throttles)
Line 84: Line 84:
  return ((value <= min) and (value >= max));
  return ((value <= min) and (value >= max));
}
}
var inc_throttles = func {
  throttles[0] += INCREMENT * me.fpsfix;
  throttles[1] += INCREMENT * me.fpsfix;
}
var dec_throttles = func {
  throttles[0] -= INCREMENT * me.fpsfix;
  throttles[1] -= INCREMENT * me.fpsfix;
}


var fbw = {
var fbw = {