|
From: David M. <da...@me...> - 2001-07-17 13:39:19
|
In my local code tree, I've added support for retractable landing gear to src/Controls/controls.[ch]xx. The following methods are available in FGControls: void set_gear_down (bool gear_down); bool get_gear_down () const; Instead of using these methods, though, it is a good idea to use the property: /controls/gear-down (bool) This represents the switch rather than the gear itself -- i.e. I've moved the switch to the gear-down position, but the gear may or may not be down or locked (that's up to the FDM). Is there any reason to model this as a floating-point number (0.0:1.0) rather than a simple toggle, when the FDM will manage all the in-between states itself? For now, I've bound the 'g' key to toggle gear-down. If Curt decides to add this patch when I send it to him, then we can link the property to the JSBSim FCS through JSBSim.cxx. All the best, David -- David Megginson da...@me... |