Hi,
After a bit of time away from Flightgear I've just re-installed with 3.2 after a bit of a hardware upgrade. Loving the new scenery!
I've started collecting parts to build my own basic panel and will be using switches connected to a Raspberry Pi with Python to take the switch inputs and interface with Flightgear over telnet.
So far so good, Flightgear is running with telnet enabled and I can connect via putty and use get/set commands etc to change properties however I'm stuck with how to constantly set the /controls/engine/engine[0]/starter property to true to continue spinning the starter until engine has started. On the c172p this is momentary switch (key) for which I'll need to replicate the function.
If I set the property to true via telnet then I see the prop 'twitch' but the property immediately reverts to false, which makes sense but I can't seem to figure out how (via telnet) to recreate the function of the keyboard 's' key to set the property to true until the key is released.
Would I keep sending the set /controls/engine/engine[0]/starter true 5 times a second over telnet (UDP) with some form of program while loop?
Apologies is this has an obvious answer but I've hit a real brain block here on my first foray into hardware interfacing with FG.
Oh, for the time being i'm only concerned with the c172p.
Many thanks,
Paddy