Debian Codegraph @

src/Aircraft/controls.hxx

raw symbols SCIP
1 // controls.hxx -- defines a standard interface to all flight sim controls
2 //
3 // Written by Curtis Olson, started May 1997.
4 //
5 // SPDX-FileCopyrightText: (C) 1997 Curtis L. Olson - http://www.flightgear.org/~curt
6 // SPDX-License-Identifier: GPL-2.0-or-later
7
8 #pragma once
9
10 #include "simgear/props/props.hxx"
11 #include <simgear/props/tiedpropertylist.hxx>
12 #include <simgear/structure/subsystem_mgr.hxx>
13
14 // Define a structure containing the control parameters
15
16 class FGControls : public SGSubsystem
17 {
18 public:
19 enum {
20 ALL_ENGINES = -1,
21 MAX_ENGINES = 12
22 };
23
24 enum {
25 ALL_WHEELS = -1,
26 MAX_WHEELS = 3
27 };
28
29 enum {
30 ALL_TANKS = -1,
31 MAX_TANKS = 8
32 };
33
34 enum {
35 ALL_BOOSTPUMPS = -1,
36 MAX_BOOSTPUMPS = 2
37 };
38
39 enum {
40 ALL_HYD_SYSTEMS = -1,
41 MAX_HYD_SYSTEMS = 4
42 };
43
44 enum {
45 ALL_PACKS = -1,
46 MAX_PACKS = 4
47 };
48
49 enum {
50 ALL_LIGHTS = -1,
51 MAX_LIGHTS = 4
52 };
53
54 enum {
55 ALL_STATIONS = -1,
56 MAX_STATIONS = 12
57 };
58
59 enum {
60 ALL_AUTOPILOTS = -1,
61 MAX_AUTOPILOTS = 3
62 };
63
64 enum {
65 ALL_EJECTION_SEATS = -1,
66 MAX_EJECTION_SEATS = 10
67 };
68
69 enum {
70 SEAT_SAFED = -1,
71 SEAT_ARMED = 0,
72 SEAT_FAIL = 1
73 };
74
75 enum {
76 CMD_SEL_NORM = -1,
77 CMD_SEL_AFT = 0,
78 CMD_SEL_SOLO = 1
79 };
80
81 private:
82 // controls/flight/
83 double aileron;
84 double aileron_trim;
85 double elevator;
86 double elevator_trim;
87 double rudder;
88 double rudder_trim;
89 double flaps;
90 double slats;
91 bool BLC; // Boundary Layer Control
92 double spoilers;
93 double speedbrake;
94 double wing_sweep;
95 bool wing_fold;
96 bool drag_chute;
97
98 // controls/engines/
99 bool throttle_idle;
100
101 // controls/engines/engine[n]/
102 double throttle[MAX_ENGINES];
103 bool starter[MAX_ENGINES];
104 bool fuel_pump[MAX_ENGINES];
105 bool fire_switch[MAX_ENGINES];
106 bool fire_bottle_discharge[MAX_ENGINES];
107 bool cutoff[MAX_ENGINES];
108 double mixture[MAX_ENGINES];
109 double prop_advance[MAX_ENGINES];
110 int magnetos[MAX_ENGINES];
111 int feed_tank[MAX_ENGINES];
112 bool nitrous_injection[MAX_ENGINES]; // War Emergency Power
113 double cowl_flaps_norm[MAX_ENGINES];
114 bool feather[MAX_ENGINES];
115 int ignition[MAX_ENGINES];
116 bool augmentation[MAX_ENGINES];
117 bool reverser[MAX_ENGINES];
118 bool water_injection[MAX_ENGINES];
119 double condition[MAX_ENGINES]; // turboprop speed select
120
121 // controls/fuel/
122 bool dump_valve;
123
124 // controls/fuel/tank[n]/
125 bool fuel_selector[MAX_TANKS];
126 int to_engine[MAX_TANKS];
127 int to_tank[MAX_TANKS];
128
129 // controls/fuel/tank[n]/pump[p]/
130 bool boost_pump[MAX_TANKS * MAX_BOOSTPUMPS];
131
132 // controls/gear/
133 double brake_left;
134 double brake_right;
135 double copilot_brake_left;
136 double copilot_brake_right;
137 double brake_parking;
138 double steering;
139 bool nose_wheel_steering;
140 bool gear_down;
141 bool antiskid;
142 bool tailhook;
143 bool launchbar;
144 bool catapult_launch_cmd;
145 bool tailwheel_lock;
146
147 // controls/gear/wheel[n]/
148 bool alternate_extension[MAX_WHEELS];
149
150 // controls/anti-ice/
151 bool wing_heat;
152 bool pitot_heat;
153 int wiper;
154 bool window_heat;
155
156 // controls/anti-ice/engine[n]/
157 bool carb_heat[MAX_ENGINES];
158 bool inlet_heat[MAX_ENGINES];
159
160 // controls/hydraulic/system[n]/
161 bool engine_pump[MAX_HYD_SYSTEMS];
162 bool electric_pump[MAX_HYD_SYSTEMS];
163
164 // controls/electric/
165 bool battery_switch;
166 bool external_power;
167 bool APU_generator;
168
169 // controls/electric/engine[n]/
170 bool generator_breaker[MAX_ENGINES];
171 bool bus_tie[MAX_ENGINES];
172
173 // controls/pneumatic/
174 bool APU_bleed;
175
176 // controls/pneumatic/engine[n]/
177 bool engine_bleed[MAX_ENGINES];
178
179 // controls/pressurization/
180 int mode;
181 bool dump;
182 double outflow_valve;
183
184 // controls/pressurization/pack[n]/
185 bool pack_on[MAX_PACKS];
186
187 // controls/lighting/
188 bool landing_lights;
189 bool turn_off_lights;
190 bool taxi_light;
191 bool logo_lights;
192 bool nav_lights;
193 bool beacon;
194 bool strobe;
195 double panel_norm;
196 double instruments_norm;
197 double dome_norm;
198
199 // controls/armament/
200 bool master_arm;
201 int station_select;
202 bool release_ALL;
203
204 // controls/armament/station[n]/
205 int stick_size[MAX_STATIONS];
206 bool release_stick[MAX_STATIONS];
207 bool release_all[MAX_STATIONS];
208 bool jettison_all[MAX_STATIONS];
209
210 // controls/seat/
211 double vertical_adjust;
212 double fore_aft_adjust;
213 bool eject[MAX_EJECTION_SEATS];
214 int eseat_status[MAX_EJECTION_SEATS];
215 int cmd_selector_valve;
216
217 // controls/APU/
218 int off_start_run;
219 bool APU_fire_switch;
220
221 // controls/autoflight/autopilot[n]/
222 bool autopilot_engage[MAX_AUTOPILOTS];
223
224 // controls/autoflight/
225 bool autothrottle_arm;
226 bool autothrottle_engage;
227 double heading_select;
228 double altitude_select;
229 double bank_angle_select;
230 double vertical_speed_select;
231 double speed_select;
232 double mach_select;
233 int vertical_mode;
234 int lateral_mode;
235
236 SGPropertyNode_ptr auto_coordination;
237 SGPropertyNode_ptr auto_coordination_factor;
238 simgear::TiedPropertyList _tiedProperties;
239
240 // we need to node pointers as well, so we can manually
241 // fire valueChanged for these
242 SGPropertyNode_ptr _aileronNode;
243 SGPropertyNode_ptr _elevatorNode;
244 SGPropertyNode_ptr _aileronTrimNode;
245 SGPropertyNode_ptr _elevatorTrimNode;
246 SGPropertyNode_ptr _rudderNode;
247 SGPropertyNode_ptr _rudderTrimNode;
248 SGPropertyNode_ptr _flapsNode;
249
250 simgear::PropertyList _engineThrottleNodes;
251 simgear::PropertyList _engineMixtureNodes;
252 simgear::PropertyList _engineConditionNodes;
253 simgear::PropertyList _engineStarterNodes;
254 simgear::PropertyList _engineCutoffNodes;
255 simgear::PropertyList _engineReverserNodes;
256 simgear::PropertyList _engineWaterInjectionNodes;
257 simgear::PropertyList _engineMagnetoNodes;
258 simgear::PropertyList _engineAugmentationNodes;
259 simgear::PropertyList _enginePropAdvanceNodes;
260
261 public:
262 FGControls();
263 ~FGControls();
264
265 // Subsystem API.
266 void bind() override;
267 void init() override;
268 void reinit() override;
269 void unbind() override;
270 void update(double dt) override;
271
272 // Subsystem identification.
273 static const char* staticSubsystemClassId() { return "controls"; }
274
275 // Reset function
276 void reset_all(void);
277
278 // Query functions
279 // controls/flight/
280 inline double get_aileron() const { return aileron; }
281 inline double get_aileron_trim() const { return aileron_trim; }
282 inline double get_elevator() const { return elevator; }
283 inline double get_elevator_trim() const { return elevator_trim; }
284 inline double get_rudder() const { return rudder; }
285 inline double get_rudder_trim() const { return rudder_trim; }
286 inline double get_flaps() const { return flaps; }
287 inline double get_slats() const { return slats; }
288 inline bool get_BLC() const { return BLC; }
289 inline double get_spoilers() const { return spoilers; }
290 inline double get_speedbrake() const { return speedbrake; }
291 inline double get_wing_sweep() const { return wing_sweep; }
292 inline bool get_wing_fold() const { return wing_fold; }
293 inline bool get_drag_chute() const { return drag_chute; }
294
295 // controls/engines/
296 inline bool get_throttle_idle() const { return throttle_idle; }
297
298 // controls/engines/engine[n]/
299 inline double get_throttle(int engine) const { return throttle[engine]; }
300 inline bool get_starter(int engine) const { return starter[engine]; }
301 inline bool get_fuel_pump(int engine) const { return fuel_pump[engine]; }
302 inline bool get_fire_switch(int engine) const { return fire_switch[engine]; }
303 inline bool get_fire_bottle_discharge(int engine) const
304 {
305 return fire_bottle_discharge[engine];
306 }
307 inline bool get_cutoff(int engine) const { return cutoff[engine]; }
308 inline double get_mixture(int engine) const { return mixture[engine]; }
309 inline double get_prop_advance(int engine) const
310 {
311 return prop_advance[engine];
312 }
313 inline int get_magnetos(int engine) const { return magnetos[engine]; }
314 inline int get_feed_tank(int engine) const { return feed_tank[engine]; }
315 inline bool get_nitrous_injection(int engine) const
316 {
317 return nitrous_injection[engine];
318 }
319 inline double get_cowl_flaps_norm(int engine) const
320 {
321 return cowl_flaps_norm[engine];
322 }
323 inline bool get_feather(int engine) const { return feather[engine]; }
324 inline int get_ignition(int engine) const { return ignition[engine]; }
325 inline bool get_augmentation(int engine) const { return augmentation[engine]; }
326 inline bool get_reverser(int engine) const { return reverser[engine]; }
327 inline bool get_water_injection(int engine) const
328 {
329 return water_injection[engine];
330 }
331 inline double get_condition(int engine) const { return condition[engine]; }
332
333 // controls/fuel/
334 inline bool get_dump_valve() const { return dump_valve; }
335
336 // controls/fuel/tank[n]/
337 inline bool get_fuel_selector(int tank) const
338 {
339 return fuel_selector[tank];
340 }
341 inline int get_to_engine(int tank) const { return to_engine[tank]; }
342 inline int get_to_tank(int tank) const { return to_tank[tank]; }
343
344 // controls/fuel/tank[n]/pump[p]/
345 inline bool get_boost_pump(int index) const
346 {
347 return boost_pump[index];
348 }
349
350 // controls/gear/
351 inline double get_brake_left() const { return brake_left; }
352 inline double get_brake_right() const { return brake_right; }
353 inline double get_copilot_brake_left() const { return copilot_brake_left; }
354 inline double get_copilot_brake_right() const { return copilot_brake_right; }
355 inline double get_brake_parking() const { return brake_parking; }
356 inline double get_steering() const { return steering; }
357 inline bool get_nose_wheel_steering() const { return nose_wheel_steering; }
358 inline bool get_gear_down() const { return gear_down; }
359 inline bool get_antiskid() const { return antiskid; }
360 inline bool get_tailhook() const { return tailhook; }
361 inline bool get_launchbar() const { return launchbar; }
362 inline bool get_catapult_launch_cmd() const { return catapult_launch_cmd; }
363 inline bool get_tailwheel_lock() const { return tailwheel_lock; }
364
365 // controls/gear/wheel[n]/
366 inline bool get_alternate_extension(int wheel) const
367 {
368 return alternate_extension[wheel];
369 }
370
371 // controls/anti-ice/
372 inline bool get_wing_heat() const { return wing_heat; }
373 inline bool get_pitot_heat() const { return pitot_heat; }
374 inline int get_wiper() const { return wiper; }
375 inline bool get_window_heat() const { return window_heat; }
376
377 // controls/anti-ice/engine[n]/
378 inline bool get_carb_heat(int engine) const { return carb_heat[engine]; }
379 inline bool get_inlet_heat(int engine) const { return inlet_heat[engine]; }
380
381 // controls/hydraulic/system[n]/
382 inline bool get_engine_pump(int system) const { return engine_pump[system]; }
383 inline bool get_electric_pump(int system) const { return electric_pump[system]; }
384
385 // controls/electric/
386 inline bool get_battery_switch() const { return battery_switch; }
387 inline bool get_external_power() const { return external_power; }
388 inline bool get_APU_generator() const { return APU_generator; }
389
390 // controls/electric/engine[n]/
391 inline bool get_generator_breaker(int engine) const
392 {
393 return generator_breaker[engine];
394 }
395 inline bool get_bus_tie(int engine) const { return bus_tie[engine]; }
396
397 // controls/pneumatic/
398 inline bool get_APU_bleed() const { return APU_bleed; }
399
400 // controls/pneumatic/engine[n]/
401 inline bool get_engine_bleed(int engine) const { return engine_bleed[engine]; }
402
403 // controls/pressurization/
404 inline int get_mode() const { return mode; }
405 inline double get_outflow_valve() const { return outflow_valve; }
406 inline bool get_dump() const { return dump; }
407
408 // controls/pressurization/pack[n]/
409 inline bool get_pack_on(int pack) const { return pack_on[pack]; }
410
411 // controls/lighting/
412 inline bool get_landing_lights() const { return landing_lights; }
413 inline bool get_turn_off_lights() const { return turn_off_lights; }
414 inline bool get_taxi_light() const { return taxi_light; }
415 inline bool get_logo_lights() const { return logo_lights; }
416 inline bool get_nav_lights() const { return nav_lights; }
417 inline bool get_beacon() const { return beacon; }
418 inline bool get_strobe() const { return strobe; }
419 inline double get_panel_norm() const { return panel_norm; }
420 inline double get_instruments_norm() const { return instruments_norm; }
421 inline double get_dome_norm() const { return dome_norm; }
422
423 // controls/armament/
424 inline bool get_master_arm() const { return master_arm; }
425 inline int get_station_select() const { return station_select; }
426 inline bool get_release_ALL() const { return release_ALL; }
427
428 // controls/armament/station[n]/
429 inline int get_stick_size(int station) const { return stick_size[station]; }
430 inline bool get_release_stick(int station) const { return release_stick[station]; }
431 inline bool get_release_all(int station) const { return release_all[station]; }
432 inline bool get_jettison_all(int station) const { return jettison_all[station]; }
433
434 // controls/seat/
435 inline double get_vertical_adjust() const { return vertical_adjust; }
436 inline double get_fore_aft_adjust() const { return fore_aft_adjust; }
437 inline bool get_ejection_seat(int which_seat) const
438 {
439 return eject[which_seat];
440 }
441 inline int get_eseat_status(int which_seat) const
442 {
443 return eseat_status[which_seat];
444 }
445 inline int get_cmd_selector_valve() const { return cmd_selector_valve; }
446
447
448 // controls/APU/
449 inline int get_off_start_run() const { return off_start_run; }
450 inline bool get_APU_fire_switch() const { return APU_fire_switch; }
451
452 // controls/autoflight/
453 inline bool get_autothrottle_arm() const { return autothrottle_arm; }
454 inline bool get_autothrottle_engage() const { return autothrottle_engage; }
455 inline double get_heading_select() const { return heading_select; }
456 inline double get_altitude_select() const { return altitude_select; }
457 inline double get_bank_angle_select() const { return bank_angle_select; }
458 inline double get_vertical_speed_select() const
459 {
460 return vertical_speed_select;
461 }
462 inline double get_speed_select() const { return speed_select; }
463 inline double get_mach_select() const { return mach_select; }
464 inline int get_vertical_mode() const { return vertical_mode; }
465 inline int get_lateral_mode() const { return lateral_mode; }
466
467 // controls/autoflight/autopilot[n]/
468 inline bool get_autopilot_engage(int ap) const
469 {
470 return autopilot_engage[ap];
471 }
472
473 // CAUTION: for all public setters, we need an *inner* setter which does the real setting,
474 // and which is tied, and an outer one (the public facing API) which triggers `fireValueChanged`,
475 // to ensure that listeners fire correctly.
476
477 void set_elevator(double pos);
478 void set_aileron_trim(double pos);
479 void set_elevator_trim(double pos);
480 void set_aileron(double pos);
481 void set_rudder(double pos);
482 void set_flaps(double pos);
483 void move_flaps(double amt);
484
485 void set_throttle(int engine, double pos);
486 void set_cutoff(int engine, bool val);
487 void set_augmentation(int engine, bool val);
488 void set_reverser(int engine, bool val);
489 void set_water_injection(int engine, bool val);
490 void set_magnetos(int engine, int pos);
491 void set_starter(int engine, bool flag);
492 void set_mixture(int engine, double pos);
493 void set_condition(int engine, double val);
494
495 private:
496 // IMPORTANT: do *not* make these setters public, or you will violate
497 // the listener-safety of them. If you need to make an accessor public,
498 // make these as 'inner', and make a public wrapper which correctly calls
499 // valueChanged (see, set_throttle, set_elevator etc for examples)
500
501 // Update functions
502 // controls/flight/
503 void _inner_set_aileron(double pos);
504 void move_aileron(double amt);
505 void _inner_set_aileron_trim(double pos);
506 void move_aileron_trim(double amt);
507 void _inner_set_elevator(double pos);
508 void move_elevator(double amt);
509 void _inner_set_elevator_trim(double pos);
510 void move_elevator_trim(double amt);
511 void _inner_set_rudder(double pos);
512 void move_rudder(double amt);
513 void set_rudder_trim(double pos);
514 void _inner_set_rudder_trim(double pos);
515 void move_rudder_trim(double amt);
516 void _inner_set_flaps(double pos);
517
518 void set_slats(double pos);
519 void move_slats(double amt);
520 void set_BLC(bool val);
521 void set_spoilers(double pos);
522 void move_spoilers(double amt);
523 void set_speedbrake(double pos);
524 void move_speedbrake(double amt);
525 void set_wing_sweep(double pos);
526 void move_wing_sweep(double amt);
527 void set_wing_fold(bool val);
528 void set_drag_chute(bool val);
529
530 // controls/engines/
531 void set_throttle_idle(bool val);
532
533 // controls/engines/engine[n]/
534 void _inner_set_throttle(int engine, double pos);
535 void move_throttle(int engine, double amt);
536 void _inner_set_starter(int engine, bool flag);
537 void set_fuel_pump(int engine, bool val);
538 void set_fire_switch(int engine, bool val);
539 void set_fire_bottle_discharge(int engine, bool val);
540 void _inner_set_cutoff(int engine, bool val);
541 void _inner_set_mixture(int engine, double pos);
542 void move_mixture(int engine, double amt);
543 void set_prop_advance(int engine, double pos);
544 void move_prop_advance(int engine, double amt);
545 void _inner_set_magnetos(int engine, int pos);
546 void move_magnetos(int engine, int amt);
547 void set_feed_tank(int engine, int tank);
548 void set_nitrous_injection(int engine, bool val);
549 void set_cowl_flaps_norm(int engine, double pos);
550 void move_cowl_flaps_norm(int engine, double amt);
551 void set_feather(int engine, bool val);
552 void set_ignition(int engine, int val);
553 void _inner_set_augmentation(int engine, bool val);
554 void _inner_set_reverser(int engine, bool val);
555 void _inner_set_water_injection(int engine, bool val);
556 void _inner_set_condition(int engine, double pos);
557
558 // controls/fuel
559 void set_dump_valve(bool val);
560
561 // controls/fuel/tank[n]/
562 void set_fuel_selector(int tank, bool pos);
563 void set_to_engine(int tank, int engine);
564 void set_to_tank(int tank, int dest_tank);
565
566 // controls/fuel/tank[n]/pump[p]
567 void set_boost_pump(int index, bool val);
568
569 // controls/gear/
570 void set_brake_left(double pos);
571 void move_brake_left(double amt);
572 void set_brake_right(double pos);
573 void move_brake_right(double amt);
574 void set_copilot_brake_left(double pos);
575 void set_copilot_brake_right(double pos);
576 void set_brake_parking(double pos);
577 void set_steering(double pos);
578 void move_steering(double amt);
579 void set_nose_wheel_steering(bool nws);
580 void set_gear_down(bool gear);
581 void set_antiskid(bool val);
582 void set_tailhook(bool val);
583 void set_launchbar(bool val);
584 void set_catapult_launch_cmd(bool val);
585 void set_tailwheel_lock(bool val);
586
587 // controls/gear/wheel[n]/
588 void set_alternate_extension(int wheel, bool val);
589
590 // controls/anti-ice/
591 void set_wing_heat(bool val);
592 void set_pitot_heat(bool val);
593 void set_wiper(int speed);
594 void set_window_heat(bool val);
595
596 // controls/anti-ice/engine[n]/
597 void set_carb_heat(int engine, bool val);
598 void set_inlet_heat(int engine, bool val);
599
600 // controls/hydraulic/system[n]/
601 void set_engine_pump(int system, bool val);
602 void set_electric_pump(int system, bool val);
603
604 // controls/electric/
605 void set_battery_switch(bool val);
606 void set_external_power(bool val);
607 void set_APU_generator(bool val);
608
609 // controls/electric/engine[n]/
610 void set_generator_breaker(int engine, bool val);
611 void set_bus_tie(int engine, bool val);
612
613 // controls/pneumatic/
614 void set_APU_bleed(bool val);
615
616 // controls/pneumatic/engine[n]/
617 void set_engine_bleed(int engine, bool val);
618
619 // controls/pressurization/
620 void set_mode(int mode);
621 void set_outflow_valve(double pos);
622 void move_outflow_valve(double amt);
623 void set_dump(bool val);
624
625 // controls/pressurization/pack[n]/
626 void set_pack_on(int pack, bool val);
627
628 // controls/lighting/
629 void set_landing_lights(bool val);
630 void set_turn_off_lights(bool val);
631 void set_taxi_light(bool val);
632 void set_logo_lights(bool val);
633 void set_nav_lights(bool val);
634 void set_beacon(bool val);
635 void set_strobe(bool val);
636 void set_panel_norm(double intensity);
637 void move_panel_norm(double amt);
638 void set_instruments_norm(double intensity);
639 void move_instruments_norm(double amt);
640 void set_dome_norm(double intensity);
641 void move_dome_norm(double amt);
642
643 // controls/armament/
644 void set_master_arm(bool val);
645 void set_station_select(int station);
646 void set_release_ALL(bool val);
647
648 // controls/armament/station[n]/
649 void set_stick_size(int station, int size);
650 void set_release_stick(int station, bool val);
651 void set_release_all(int station, bool val);
652 void set_jettison_all(int station, bool val);
653
654 // controls/seat/
655 void set_vertical_adjust(double pos);
656 void move_vertical_adjust(double amt);
657 void set_fore_aft_adjust(double pos);
658 void move_fore_aft_adjust(double amt);
659 void set_ejection_seat(int which_seat, bool val);
660 void set_eseat_status(int which_seat, int val);
661 void set_cmd_selector_valve(int val);
662
663 // controls/APU/
664 void set_off_start_run(int pos);
665 void set_APU_fire_switch(bool val);
666
667 // controls/autoflight/
668 void set_autothrottle_arm(bool val);
669 void set_autothrottle_engage(bool val);
670 void set_heading_select(double heading);
671 void move_heading_select(double amt);
672 void set_altitude_select(double altitude);
673 void move_altitude_select(double amt);
674 void set_bank_angle_select(double angle);
675 void move_bank_angle_select(double amt);
676 void set_vertical_speed_select(double vs);
677 void move_vertical_speed_select(double amt);
678 void set_speed_select(double speed);
679 void move_speed_select(double amt);
680 void set_mach_select(double mach);
681 void move_mach_select(double amt);
682 void set_vertical_mode(int mode);
683 void set_lateral_mode(int mode);
684
685 // controls/autoflight/autopilot[n]/
686 void set_autopilot_engage(int ap, bool val);
687
688 void do_autocoordination();
689
690 void fireEngineValueChanged(int index, simgear::PropertyList& props);
691 };