Results 271 to 280 of 737
Thread: Progamming help with FSBus dll
-
02-16-2010, 08:13 AM #271
Re: Progamming help with FSBus dll
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
-
02-16-2010, 09:07 AM #272
- Join Date
- Feb 2008
- Location
- Krefeld, Germany
- Posts
- 318
Re: Progamming help with FSBus dll
It is only 1 line, instead of 2.
-
02-16-2010, 04:57 PM #273
Re: Progamming help with FSBus dll
Oh, ok, it replaces both these lines:
val = Calibrate (val,ATTITUDEINDICATORPITCHIndicator,11);
FsbusWrite (C_ATTITUDEINDICATORPITCH, val);
Thanks
David
-
02-18-2010, 10:55 AM #274
Re: Progamming help with FSBus dll
Cant seem to find the offsets for the transfer switch for
Com1
Com2
Nav1
Nav2
unless i overlooked them
-
02-18-2010, 11:06 AM #275
- Join Date
- Jan 2007
- Location
- Netherlands
- Posts
- 201
Re: Progamming help with FSBus dll
-
02-18-2010, 11:27 AM #276
- Join Date
- Feb 2008
- Location
- Krefeld, Germany
- Posts
- 318
Re: Progamming help with FSBus dll
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
-
02-18-2010, 11:51 AM #277
Re: Progamming help with FSBus dll
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
-
02-18-2010, 12:10 PM #278
- Join Date
- Feb 2008
- Location
- Krefeld, Germany
- Posts
- 318
Re: Progamming help with FSBus dll
Look to that thread.
There you see how to handle Bit Inputs.
Stefan
-
02-18-2010, 05:08 PM #279
Re: Progamming help with FSBus dll
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++ ?
-
02-18-2010, 05:19 PM #280
Re: Progamming help with FSBus dll
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
Similar Threads
-
Fsbus ng io
By Davral in forum I/O Interfacing Hardware and SoftwareReplies: 1Last Post: 10-19-2024, 05:19 PM -
Need Help Getting My FSBUS NG I/O Going Again..
By JBRoberts in forum I/O Interfacing Hardware and SoftwareReplies: 15Last Post: 10-19-2024, 11:37 AM -
Help FSBUS
By cesarfsim in forum I/O Interfacing Hardware and SoftwareReplies: 3Last Post: 08-27-2024, 02:22 PM -
Fsbus CDK
By flyandre in forum General Builder Questions All Aircraft TypesReplies: 4Last Post: 12-27-2014, 12:58 PM -
Fsbus 2.4.3
By Anderson/SBSP in forum I/O Interfacing Hardware and SoftwareReplies: 9Last Post: 11-30-2008, 04:25 PM