set_augmentation( ALL_ENGINES, false );
set_reverser( ALL_ENGINES, false );
set_water_injection( ALL_ENGINES, false );
- set_condition( ALL_ENGINES, 0 );
+ set_condition( ALL_ENGINES, 1.0 );
throttle_idle = true;
set_fuel_selector( ALL_TANKS, true );
dump_valve = false;
water_injection[engine] = false;
nitrous_injection[engine] = false;
cowl_flaps_norm[engine] = 0.0;
- condition[engine] = 0;
+ condition[engine] = 1.0;
}
brake_left = brake_right = brake_parking = 0.0;
&FGControls::set_cowl_flaps_norm);
fgSetArchivable(name);
- snprintf(name, MAX_NAME_LEN, "/controls/engines/engine[%d]/feather", index);
+ snprintf(name, MAX_NAME_LEN,
+ "/controls/engines/engine[%d]/propeller-feather", index);
fgTie(name, this, index,
&FGControls::get_feather, &FGControls::set_feather);
fgSetArchivable(name);
snprintf(name, MAX_NAME_LEN,
"/controls/engines/engine[%d]/cowl-flaps-norm", index);
fgUntie(name);
- snprintf(name, MAX_NAME_LEN, "/controls/engines/engine[%d]/feather", index);
+ snprintf(name, MAX_NAME_LEN,
+ "/controls/engines/engine[%d]/propeller-feather", index);
fgUntie(name);
snprintf(name, MAX_NAME_LEN,
"/controls/engines/engine[%d]/ignition", index);
}
void
-FGControls::set_condition( int engine, int val )
+FGControls::set_condition( int engine, double val )
{
if ( engine == ALL_ENGINES ) {
for ( int i = 0; i < MAX_ENGINES; i++ ) {
condition[i] = val;
- CLAMP( &condition[i], 0, 3 );
}
} else {
if ( (engine >= 0) && (engine < MAX_ENGINES) ) {
condition[engine] = val;
- CLAMP( &condition[engine], 0, 3 );
}
}
}
bool augmentation[MAX_ENGINES];
bool reverser[MAX_ENGINES];
bool water_injection[MAX_ENGINES];
- int condition[MAX_ENGINES]; // turboprop speed select
+ double condition[MAX_ENGINES]; // turboprop speed select
// controls/fuel/
bool dump_valve;
inline bool get_water_injection(int engine) const {
return water_injection[engine];
}
- inline int get_condition(int engine) const { return condition[engine]; }
+ inline double get_condition(int engine) const { return condition[engine]; }
// controls/fuel/
inline bool get_dump_valve() const { return dump_valve; }
void set_augmentation( int engine, bool val );
void set_reverser( int engine, bool val );
void set_water_injection( int engine, bool val );
- void set_condition( int engine, int val );
+ void set_condition( int engine, double val );
// controls/fuel
void set_dump_valve( bool val );