FlightGear next
|
#include <controls.hxx>
Inherits SGSubsystem.
Public Types | |
enum | { ALL_ENGINES = -1 , MAX_ENGINES = 12 } |
enum | { ALL_WHEELS = -1 , MAX_WHEELS = 3 } |
enum | { ALL_TANKS = -1 , MAX_TANKS = 8 } |
enum | { ALL_BOOSTPUMPS = -1 , MAX_BOOSTPUMPS = 2 } |
enum | { ALL_HYD_SYSTEMS = -1 , MAX_HYD_SYSTEMS = 4 } |
enum | { ALL_PACKS = -1 , MAX_PACKS = 4 } |
enum | { ALL_LIGHTS = -1 , MAX_LIGHTS = 4 } |
enum | { ALL_STATIONS = -1 , MAX_STATIONS = 12 } |
enum | { ALL_AUTOPILOTS = -1 , MAX_AUTOPILOTS = 3 } |
enum | { ALL_EJECTION_SEATS = -1 , MAX_EJECTION_SEATS = 10 } |
enum | { SEAT_SAFED = -1 , SEAT_ARMED = 0 , SEAT_FAIL = 1 } |
enum | { CMD_SEL_NORM = -1 , CMD_SEL_AFT = 0 , CMD_SEL_SOLO = 1 } |
Public Member Functions | |
FGControls () | |
~FGControls () | |
void | bind () override |
void | init () override |
void | reinit () override |
void | unbind () override |
void | update (double dt) override |
void | reset_all (void) |
double | get_aileron () const |
double | get_aileron_trim () const |
double | get_elevator () const |
double | get_elevator_trim () const |
double | get_rudder () const |
double | get_rudder_trim () const |
double | get_flaps () const |
double | get_slats () const |
bool | get_BLC () const |
double | get_spoilers () const |
double | get_speedbrake () const |
double | get_wing_sweep () const |
bool | get_wing_fold () const |
bool | get_drag_chute () const |
bool | get_throttle_idle () const |
double | get_throttle (int engine) const |
bool | get_starter (int engine) const |
bool | get_fuel_pump (int engine) const |
bool | get_fire_switch (int engine) const |
bool | get_fire_bottle_discharge (int engine) const |
bool | get_cutoff (int engine) const |
double | get_mixture (int engine) const |
double | get_prop_advance (int engine) const |
int | get_magnetos (int engine) const |
int | get_feed_tank (int engine) const |
bool | get_nitrous_injection (int engine) const |
double | get_cowl_flaps_norm (int engine) const |
bool | get_feather (int engine) const |
int | get_ignition (int engine) const |
bool | get_augmentation (int engine) const |
bool | get_reverser (int engine) const |
bool | get_water_injection (int engine) const |
double | get_condition (int engine) const |
bool | get_dump_valve () const |
bool | get_fuel_selector (int tank) const |
int | get_to_engine (int tank) const |
int | get_to_tank (int tank) const |
bool | get_boost_pump (int index) const |
double | get_brake_left () const |
double | get_brake_right () const |
double | get_copilot_brake_left () const |
double | get_copilot_brake_right () const |
double | get_brake_parking () const |
double | get_steering () const |
bool | get_nose_wheel_steering () const |
bool | get_gear_down () const |
bool | get_antiskid () const |
bool | get_tailhook () const |
bool | get_launchbar () const |
bool | get_catapult_launch_cmd () const |
bool | get_tailwheel_lock () const |
bool | get_alternate_extension (int wheel) const |
bool | get_wing_heat () const |
bool | get_pitot_heat () const |
int | get_wiper () const |
bool | get_window_heat () const |
bool | get_carb_heat (int engine) const |
bool | get_inlet_heat (int engine) const |
bool | get_engine_pump (int system) const |
bool | get_electric_pump (int system) const |
bool | get_battery_switch () const |
bool | get_external_power () const |
bool | get_APU_generator () const |
bool | get_generator_breaker (int engine) const |
bool | get_bus_tie (int engine) const |
bool | get_APU_bleed () const |
bool | get_engine_bleed (int engine) const |
int | get_mode () const |
double | get_outflow_valve () const |
bool | get_dump () const |
bool | get_pack_on (int pack) const |
bool | get_landing_lights () const |
bool | get_turn_off_lights () const |
bool | get_taxi_light () const |
bool | get_logo_lights () const |
bool | get_nav_lights () const |
bool | get_beacon () const |
bool | get_strobe () const |
double | get_panel_norm () const |
double | get_instruments_norm () const |
double | get_dome_norm () const |
bool | get_master_arm () const |
int | get_station_select () const |
bool | get_release_ALL () const |
int | get_stick_size (int station) const |
bool | get_release_stick (int station) const |
bool | get_release_all (int station) const |
bool | get_jettison_all (int station) const |
double | get_vertical_adjust () const |
double | get_fore_aft_adjust () const |
bool | get_ejection_seat (int which_seat) const |
int | get_eseat_status (int which_seat) const |
int | get_cmd_selector_valve () const |
int | get_off_start_run () const |
bool | get_APU_fire_switch () const |
bool | get_autothrottle_arm () const |
bool | get_autothrottle_engage () const |
double | get_heading_select () const |
double | get_altitude_select () const |
double | get_bank_angle_select () const |
double | get_vertical_speed_select () const |
double | get_speed_select () const |
double | get_mach_select () const |
int | get_vertical_mode () const |
int | get_lateral_mode () const |
bool | get_autopilot_engage (int ap) const |
void | set_elevator (double pos) |
void | set_aileron_trim (double pos) |
void | set_elevator_trim (double pos) |
void | set_aileron (double pos) |
void | set_rudder (double pos) |
void | set_throttle (int engine, double pos) |
void | set_cutoff (int engine, bool val) |
void | set_augmentation (int engine, bool val) |
void | set_reverser (int engine, bool val) |
void | set_water_injection (int engine, bool val) |
void | set_magnetos (int engine, int pos) |
void | set_starter (int engine, bool flag) |
void | set_mixture (int engine, double pos) |
Static Public Member Functions | |
static const char * | staticSubsystemClassId () |
Definition at line 32 of file controls.hxx.
anonymous enum |
Enumerator | |
---|---|
ALL_STATIONS | |
MAX_STATIONS |
Definition at line 70 of file controls.hxx.
anonymous enum |
Enumerator | |
---|---|
ALL_LIGHTS | |
MAX_LIGHTS |
Definition at line 65 of file controls.hxx.
anonymous enum |
Enumerator | |
---|---|
ALL_EJECTION_SEATS | |
MAX_EJECTION_SEATS |
Definition at line 80 of file controls.hxx.
anonymous enum |
Enumerator | |
---|---|
ALL_HYD_SYSTEMS | |
MAX_HYD_SYSTEMS |
Definition at line 55 of file controls.hxx.
anonymous enum |
Enumerator | |
---|---|
ALL_BOOSTPUMPS | |
MAX_BOOSTPUMPS |
Definition at line 50 of file controls.hxx.
anonymous enum |
Enumerator | |
---|---|
CMD_SEL_NORM | |
CMD_SEL_AFT | |
CMD_SEL_SOLO |
Definition at line 91 of file controls.hxx.
anonymous enum |
Enumerator | |
---|---|
ALL_PACKS | |
MAX_PACKS |
Definition at line 60 of file controls.hxx.
anonymous enum |
Enumerator | |
---|---|
SEAT_SAFED | |
SEAT_ARMED | |
SEAT_FAIL |
Definition at line 85 of file controls.hxx.
anonymous enum |
Enumerator | |
---|---|
ALL_TANKS | |
MAX_TANKS |
Definition at line 45 of file controls.hxx.
anonymous enum |
Enumerator | |
---|---|
ALL_AUTOPILOTS | |
MAX_AUTOPILOTS |
Definition at line 75 of file controls.hxx.
anonymous enum |
Enumerator | |
---|---|
ALL_ENGINES | |
MAX_ENGINES |
Definition at line 35 of file controls.hxx.
anonymous enum |
Enumerator | |
---|---|
ALL_WHEELS | |
MAX_WHEELS |
Definition at line 40 of file controls.hxx.
FGControls::FGControls | ( | ) |
Definition at line 36 of file controls.cxx.
FGControls::~FGControls | ( | ) |
Definition at line 164 of file controls.cxx.
|
override |
Definition at line 187 of file controls.cxx.
|
inline |
Definition at line 292 of file controls.hxx.
|
inline |
Definition at line 293 of file controls.hxx.
|
inline |
Definition at line 371 of file controls.hxx.
|
inline |
Definition at line 457 of file controls.hxx.
|
inline |
Definition at line 364 of file controls.hxx.
|
inline |
Definition at line 401 of file controls.hxx.
|
inline |
Definition at line 451 of file controls.hxx.
|
inline |
Definition at line 392 of file controls.hxx.
|
inline |
Definition at line 333 of file controls.hxx.
|
inline |
Definition at line 468 of file controls.hxx.
|
inline |
Definition at line 454 of file controls.hxx.
|
inline |
Definition at line 455 of file controls.hxx.
|
inline |
Definition at line 458 of file controls.hxx.
|
inline |
Definition at line 390 of file controls.hxx.
|
inline |
Definition at line 420 of file controls.hxx.
|
inline |
Definition at line 300 of file controls.hxx.
|
inline |
Definition at line 351 of file controls.hxx.
|
inline |
Definition at line 356 of file controls.hxx.
|
inline |
Definition at line 360 of file controls.hxx.
|
inline |
Definition at line 357 of file controls.hxx.
|
inline |
Definition at line 398 of file controls.hxx.
|
inline |
Definition at line 382 of file controls.hxx.
|
inline |
Definition at line 367 of file controls.hxx.
|
inline |
Definition at line 446 of file controls.hxx.
|
inline |
Definition at line 338 of file controls.hxx.
|
inline |
Definition at line 358 of file controls.hxx.
|
inline |
Definition at line 359 of file controls.hxx.
|
inline |
Definition at line 328 of file controls.hxx.
|
inline |
Definition at line 318 of file controls.hxx.
|
inline |
Definition at line 424 of file controls.hxx.
|
inline |
Definition at line 305 of file controls.hxx.
|
inline |
Definition at line 409 of file controls.hxx.
|
inline |
Definition at line 341 of file controls.hxx.
|
inline |
Definition at line 440 of file controls.hxx.
|
inline |
Definition at line 387 of file controls.hxx.
|
inline |
Definition at line 294 of file controls.hxx.
|
inline |
Definition at line 295 of file controls.hxx.
|
inline |
Definition at line 404 of file controls.hxx.
|
inline |
Definition at line 386 of file controls.hxx.
|
inline |
Definition at line 443 of file controls.hxx.
|
inline |
Definition at line 391 of file controls.hxx.
|
inline |
Definition at line 331 of file controls.hxx.
|
inline |
Definition at line 324 of file controls.hxx.
|
inline |
Definition at line 315 of file controls.hxx.
|
inline |
Definition at line 314 of file controls.hxx.
|
inline |
Definition at line 298 of file controls.hxx.
|
inline |
Definition at line 439 of file controls.hxx.
|
inline |
Definition at line 313 of file controls.hxx.
|
inline |
Definition at line 344 of file controls.hxx.
|
inline |
Definition at line 363 of file controls.hxx.
|
inline |
Definition at line 395 of file controls.hxx.
|
inline |
Definition at line 456 of file controls.hxx.
|
inline |
Definition at line 332 of file controls.hxx.
|
inline |
Definition at line 383 of file controls.hxx.
|
inline |
Definition at line 423 of file controls.hxx.
|
inline |
Definition at line 435 of file controls.hxx.
|
inline |
Definition at line 415 of file controls.hxx.
|
inline |
Definition at line 465 of file controls.hxx.
|
inline |
Definition at line 366 of file controls.hxx.
|
inline |
Definition at line 418 of file controls.hxx.
|
inline |
Definition at line 463 of file controls.hxx.
|
inline |
Definition at line 323 of file controls.hxx.
|
inline |
Definition at line 427 of file controls.hxx.
|
inline |
Definition at line 319 of file controls.hxx.
|
inline |
Definition at line 407 of file controls.hxx.
|
inline |
Definition at line 419 of file controls.hxx.
|
inline |
Definition at line 325 of file controls.hxx.
|
inline |
Definition at line 362 of file controls.hxx.
|
inline |
Definition at line 450 of file controls.hxx.
|
inline |
Definition at line 408 of file controls.hxx.
|
inline |
Definition at line 412 of file controls.hxx.
|
inline |
Definition at line 422 of file controls.hxx.
|
inline |
Definition at line 377 of file controls.hxx.
|
inline |
Definition at line 320 of file controls.hxx.
|
inline |
Definition at line 429 of file controls.hxx.
|
inline |
Definition at line 434 of file controls.hxx.
|
inline |
Definition at line 433 of file controls.hxx.
|
inline |
Definition at line 334 of file controls.hxx.
|
inline |
Definition at line 296 of file controls.hxx.
|
inline |
Definition at line 297 of file controls.hxx.
|
inline |
Definition at line 299 of file controls.hxx.
|
inline |
Definition at line 462 of file controls.hxx.
|
inline |
Definition at line 302 of file controls.hxx.
|
inline |
Definition at line 301 of file controls.hxx.
|
inline |
Definition at line 312 of file controls.hxx.
|
inline |
Definition at line 428 of file controls.hxx.
|
inline |
Definition at line 361 of file controls.hxx.
|
inline |
Definition at line 432 of file controls.hxx.
|
inline |
Definition at line 421 of file controls.hxx.
|
inline |
Definition at line 365 of file controls.hxx.
|
inline |
Definition at line 368 of file controls.hxx.
|
inline |
Definition at line 417 of file controls.hxx.
|
inline |
Definition at line 311 of file controls.hxx.
|
inline |
Definition at line 308 of file controls.hxx.
|
inline |
Definition at line 347 of file controls.hxx.
|
inline |
Definition at line 348 of file controls.hxx.
|
inline |
Definition at line 416 of file controls.hxx.
|
inline |
Definition at line 438 of file controls.hxx.
|
inline |
Definition at line 464 of file controls.hxx.
|
inline |
Definition at line 459 of file controls.hxx.
|
inline |
Definition at line 335 of file controls.hxx.
|
inline |
Definition at line 379 of file controls.hxx.
|
inline |
Definition at line 304 of file controls.hxx.
|
inline |
Definition at line 376 of file controls.hxx.
|
inline |
Definition at line 303 of file controls.hxx.
|
inline |
Definition at line 378 of file controls.hxx.
|
override |
Definition at line 170 of file controls.cxx.
|
override |
Definition at line 175 of file controls.cxx.
void FGControls::reset_all | ( | void | ) |
Definition at line 84 of file controls.cxx.
void FGControls::set_aileron | ( | double | pos | ) |
Definition at line 463 of file controls.cxx.
void FGControls::set_aileron_trim | ( | double | pos | ) |
Definition at line 485 of file controls.cxx.
void FGControls::set_augmentation | ( | int | engine, |
bool | val ) |
Definition at line 1003 of file controls.cxx.
void FGControls::set_cutoff | ( | int | engine, |
bool | val ) |
Definition at line 777 of file controls.cxx.
void FGControls::set_elevator | ( | double | pos | ) |
Definition at line 505 of file controls.cxx.
void FGControls::set_elevator_trim | ( | double | pos | ) |
Definition at line 525 of file controls.cxx.
void FGControls::set_magnetos | ( | int | engine, |
int | pos ) |
Definition at line 886 of file controls.cxx.
void FGControls::set_mixture | ( | int | engine, |
double | pos ) |
Definition at line 815 of file controls.cxx.
void FGControls::set_reverser | ( | int | engine, |
bool | val ) |
Definition at line 1024 of file controls.cxx.
void FGControls::set_rudder | ( | double | pos | ) |
Definition at line 545 of file controls.cxx.
void FGControls::set_starter | ( | int | engine, |
bool | flag ) |
Definition at line 714 of file controls.cxx.
void FGControls::set_throttle | ( | int | engine, |
double | pos ) |
Definition at line 676 of file controls.cxx.
void FGControls::set_water_injection | ( | int | engine, |
bool | val ) |
Definition at line 1045 of file controls.cxx.
|
inlinestatic |
Definition at line 285 of file controls.hxx.
|
override |
Definition at line 430 of file controls.cxx.
|
override |
Definition at line 450 of file controls.cxx.