Results 1 to 2 of 2
-
01-28-2011, 08:55 PM #1
Need a definitive howto - Simconnect and a simple external switch
I learned some C and C++ in highschool long ago. My knowledge of the language ends with console programs and programming AVR's in GNU C.
For the life of me, I do not understand the junk that microsoft has added to the languages.
Here is what I would love to find if it already exists. A tutorial on interfacing an external toggle switch that connects to the computer via a serial port. All I want is step by step instructions on how to make this simple toggle switch turn on the landing lights, or the seat belt sign, etc.
Now I already know how to program an AVR to send data via the serial port. I do NOT know how to make my pc respond to this serial data and further, make the functions work in FSX. All I know is that SimConnect does this, some how. I know there are many products I can purchase that will allow me to do this. That is not the point, I feel an intense need to learn this stuff, I want to learn and do it for my own satisfaction. Long term project is an L1011 cockpit. I need to learn the basics first before I start deciphering synchros in the autopilot controls and communicating serially to FSX.
I have also purchased Mikes book on building recreational simulators and found it to be a great help, although I wished he used AVRs programmed in C rather than PIC's in assembly :P
Thanks if anyone can point me into the right direction
-
01-29-2011, 02:52 AM #2
- Join Date
- Feb 2007
- Location
- California, USA
- Posts
- 377
Re: Need a definitive howto - Simconnect and a simple external switch
You probably have already seen these, but if not:
Simconnect info from MS: http://msdn.microsoft.com/library/cc526948.aspx
Serial port under win32: http://msdn.microsoft.com/en-us/library/ms810467.aspx
This information worked for Windows XP. I do not know if it works for Win7
I suggest working through the simconnect code samples before dealing with the serial comm port.
Similar Threads
-
How to make a simple switch panel
By cnopicilin in forum Where to Start Building a Home CockpitReplies: 44Last Post: 12-21-2010, 01:29 PM -
FSX SDK Simconnect troubles
By knuffelbaer1971 in forum General Microsoft Flight Simulator 10 (FSX)Replies: 1Last Post: 02-27-2010, 12:10 PM -
Planning to start simple - not as simple as I thought!
By Skylar in forum Where to Start Building a Home CockpitReplies: 3Last Post: 01-12-2010, 05:47 AM -
simconnect ?
By Mr. Midnight in forum General Builder Questions All Aircraft TypesReplies: 1Last Post: 11-01-2009, 12:04 AM
Explore Exciting Connections for a Night of Fun in Your City
Ready for an Unforgettable Night?...