Finally, it’s my time…software developing! Yes…in my “real life” I’m a computer engineer and my primary job is consultant and software developer…I’m not so good as with hardware things but I’m better in software developing…

Ok, I don’t know SIOC but event driven programming language is my “specialty”. This is the first time I tried to write a piece of software for microcontroller…So I hope to hit my target 🙂

I study SIOC syntax, take some examples over the internet and that’s it. I got it…

My first case study is a simple software which lights up leds according to the status of the sim, using FSUIPC interface library. So, I connect 3 card’s output to the breadboard, on which I set up the leds. I keep in mind output number and write down my first “piece of code” in SIOC language. It was not so difficult…

First thing to do is identify the FSUIPC’s variables (called OFFSET) which control the events; so, helped by documentation, I found, just as an example, offsets related to LANDING LIGHTS, TAXI LIGHT e STROBE LIGHT.

Now in SIOC I define private variables linked to sim’s variables and write down procedures which belong to the sim’s events (for example LANDING LIGHTS lights up)

Then, I define other 3 private variables, linked to card’s output.

This little software put in relation OFFSET related variables (input) to variables linked to the card’s output. In other words:

for any change of value of an OFFSET (event):

– if INPUT value is equal to 1 then set 1 to the related output;

– otherwise set 0;

Setting 1 to an output means to get 5V voltage on related terminal…using a well sized resistor the led get 2V voltage and lights up with the right power.

Nothing easier!!!!

Here is a short video which documents the achieved result: through SAITEK panel I control the plane’s lights and leds light up according to the issued command.

Now I have to define all the sim’s status and write down the related software. It’s a huge work … so let’s start…I’m very excited about it…

Next step will be an “Handmade” input interface…so stay tuned!!!

1 vote, average: 5.00 out of 51 vote, average: 5.00 out of 51 vote, average: 5.00 out of 51 vote, average: 5.00 out of 51 vote, average: 5.00 out of 5 (1 votes, average: 5.00 out of 5)
You need to be a registered member to rate this.
(34 total tokens earned)