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

m
→‎/Nasal/fbw.nas: move the throttles vector initialization into the init func
m (→‎/Nasal/fbw.nas: start using the new methods to increment/decrement throttles)
m (→‎/Nasal/fbw.nas: move the throttles vector initialization into the init func)
Line 104: Line 104:


me.disconnectannounce = 0;
me.disconnectannounce = 0;
# use a vector of throttles, this can be later on used to support more than
# just two engines
me.throttles = [nil,nil];


## Initialize with FBW Activated
## Initialize with FBW Activated
Line 160: Line 164:


## Engine Throttle Positions
## Engine Throttle Positions
# use a vector of throttles, this can be later on used to support more than
# just two engines
# TODO: move to constructor
me.throttles = [nil,nil];


me.throttles[0] = getprop("controls/engines/engine[0]/throttle");
me.throttles[0] = getprop("controls/engines/engine[0]/throttle");