
- #Flightgear joystick full
- #Flightgear joystick pro
- #Flightgear joystick software
- #Flightgear joystick code
ConnectionsĮach control button or switch is connected to its own MCP23017 port and GND. We could not get the ‘’ keycodes used to toggle the magnetos to work, so we reassigned them to keys that do not require shift on the keyboard, like U and u using the FlightGear configuration file. We experimented with different button / Arduino keyboard commands to send the correct key codes to FlightGear.
#Flightgear joystick software
For these to work the software had to emulate a Momentary Button. We also used latching Push Buttons for the Coffman Cartridge loader and Fuel Primer Plunger as they had a nice click action. These can be made to issue multiple key codes in a stream using the keyboard library. This requires a momentary button that can be held in the on state and released for off, just like a keyboard key.


Some controls like the engine starter button needed to be pressed and held down.
#Flightgear joystick code
They can send the same key code for both on and off states, for when a control toggles, in the case of the magnetos or a separate code for each state used by the flaps. We used 3 different types of switches and buttons to add interest and authenticity to the control panel and to show how they can interact with the simulator.įor controls that are either on/off, or up/down, like the magnetos, flaps and undercarriage gear, SPST or SPDT latching toggle switches work well. The circuit was tested on a breadboard before a permanent version was made using prototyping board with soldered components. This leaves plenty of room for adding further controls. They can also be chained together so you can connect a large number of buttons and switches using just 2 pins on the Arduino. It uses the I2C interface on the Arduino and each chip is capable of controlling 16 inputs/outputs. Once downloaded follow the installation instructions.Īt the heart of the circuit used to detect the buttons and switches is a Microchip MCP23017 I/O port expander IC. It is available as a free download on Mac / Windows & Linux systems from. Leaving us to concentrate on flying gracefully through the air!įlightGear is a sophisticated open-source flight simulator for use in research environments, pilot training and for fun. Now, using the controller to load the Coffman starter cartridge, switch on the magneto’s, priming the carburettors and firing up the V-12 Rolls-Royce Merlin engine is a much more authentic experience. The Spitfire aircraft chosen for this project has an authentic start-up procedure that closely follows the original Pilot’s Operational Handbook, a copy of which is included with the download. Only the Micro, Leonardo and Nano 33 IoT boards are capable of emulating a USB keyboard, so you must use one of these. That’s why we built a custom control panel with real switches and buttons to make the in-flight experience much more realistic.Īlthough this control panel was built specifically for this Spitfire simulator, with a bit of ingenuity, it is possible to make controllers for any game or simulator that uses keyboard input using an Arduino and a simple circuit. I have been messing with this for 2 weeks now & am ready to give up.Remembering complicated keyboard commands whilst playing a game is a real pain, especially when there are lots of controls like in FlightGear’s Spitfire simulator.
#Flightgear joystick pro
I am using FGear 2019.1.1, Windows 10, Microsoft Sidewinder Pro (USB) joystick. So I am still lacking some understanding in that area. I have been reading all about the joystick XML files, but my button settings don't show up in the appropriate XML file. The rudder has practically no effect, even though the controls respond ok.
#Flightgear joystick full
I can only get 2100 rpm at full throttle &. I have tried changing aircraft & airports, but then nothing worked, so went back to the default C172 at Honolulu.

The joystick is working ok - all the controls respond correctly. The few times I was able to take off, no amount of right-stick would stop the roll. Even on the ground I can't stop it from going in circles. I got FG installed ok, but hav never been able to correct the roll to left.
