Hi Stefan,
Thanks for the tip.
What does this do differently to how I have it coded now?
FsbusWrite (C_ATTITUDEINDICATORPITCH, Calibrate (val,ATTITUDEINDICATORPITCHIndicator,11));
vs
FsbusWrite (C_ATTITUDEINDICATORPITCH, val);
Thanks
David
Printable View
Hi Stefan,
Thanks for the tip.
What does this do differently to how I have it coded now?
FsbusWrite (C_ATTITUDEINDICATORPITCH, Calibrate (val,ATTITUDEINDICATORPITCHIndicator,11));
vs
FsbusWrite (C_ATTITUDEINDICATORPITCH, val);
Thanks
David
It is only 1 line, instead of 2.
Oh, ok, it replaces both these lines:
val = Calibrate (val,ATTITUDEINDICATORPITCHIndicator,11);
FsbusWrite (C_ATTITUDEINDICATORPITCH, val);
Thanks
David
Cant seem to find the offsets for the transfer switch for
Com1
Com2
Nav1
Nav2
unless i overlooked them
You can also make your own swap in your code.
The advantageous is that you don´t need to read the Values from the FSUIPC Offset. In that case the radios are Input only devices.
Stefan
k i see that in there now but i guess i dont under stand how you would put that into C++ If 3123 is the offset how you type it up for Com1 can you give me an example for Com1? so i take it since this is only a Write not a read that when the switch is in this position its val = say 2^3 to = COM1 so would it be a on/off switch to and every time it writes that one value it will swap the two freqs? can you please give me an example via code so i can get an idea?
Thanks, Trevor
Look to that thread.
There you see how to handle Bit Inputs.
Stefan
O...... ok ill try to make since of that thanks!!! I have never messed with a IO board or switches and i ordered some last week hope to get them here in the mail soon. As advice would you say this whole thing would be easier to figure out if i had a IO pcb and switches to experiment with the C++ ?
Hi Trevor,
Stefan helped me with the swap button earlier on in this thread.
He gave me an example of the ADF code and with his help, modified it for the NAV1.
Tis here: http://www.mycockpit.org/forums/show...Bus-dll/page15
David
If you like, when I get a moment, I'll post the actual code for the NAV1