Results 151 to 160 of 737
Thread: Progamming help with FSBus dll
-
07-14-2009, 03:21 AM #151
- Join Date
- Feb 2008
- Location
- Krefeld, Germany
- Posts
- 318
-
07-16-2009, 04:26 AM #152
Re: Progamming help with FSBus dll
Hi Stefan,
This will probably sound like a silly question, but here goes.
I have programmed in the Inner, middle and outer marker lights (IMO lights).
I want to test them, but I can't get the IMO lights to work in fsx (not the programmed ones, but the actual ones on the screen). I have tried many different airports, approached from at least 4nm out to get the outer marker, but they just don't work.
I have also tried with the VOR frequency dialled in for that specific airport but no go.
I am missing something that makes these lights work.
I have flown so many times and these lights have worked so many times before but when I want them to light up so I can test my coding, nothing.
Appreciate your input on this.
David
-
Post Thanks / Like - 1 Thanks, 0 Likes, 0 Dislikessgaert thanked for this post
-
07-16-2009, 04:31 AM #153
- Join Date
- Feb 2008
- Location
- Krefeld, Germany
- Posts
- 318
-
07-16-2009, 04:38 AM #154
Re: Progamming help with FSBus dll
I can't say that they don't work, but I am probably doing something wrong on approach or I have a setting wrong or have not set something.
I thought they worked all the time on approach whether it's an ILS, vor, vfr etc.
-
07-17-2009, 07:18 AM #155
Re: Progamming help with FSBus dll
I can get the lights to light up in the USA. Dallas International.
The IMO lights illuminate but now that I can test the lights, I'm not getting my led's lighting up.
I've tried a variety of coding to see if it works but I'm not having any luck.
Here's what I have. I thought it should be as simple as the Inner and Middle are coded so then I tried adding the variable to the Outer but that didn't work either.
Tested the leds in FSAdmin and they work.
I know I'm missing something simple, hope you can point it out to me.
(with the outer marker, I have the static int outermarker = 0; at the top of the page)
Code:void cbIndicatorlights (int oid, int val, double dval) { switch (oid) { case FS_INNERMARKER: FsbusWrite (C_LEDINNERMARKER, val); break; case FS_MIDDLEMARKER: FsbusWrite (C_LEDMIDDLEMARKER, val); break; case FS_OUTERMARKER: if (outermarker == 0) { FsbusWrite (FS_OUTERMARKER, 0); } else (outermarker == 1); { FsbusWrite (FS_OUTERMARKER, 1); } break;
-
07-17-2009, 07:49 AM #156
- Join Date
- Feb 2008
- Location
- Krefeld, Germany
- Posts
- 318
Re: Progamming help with FSBus dll
Hi,
this type is the right solution.
case FS_INNERMARKER:
FsbusWrite (C_LEDINNERMARKER, val);
break;
Your outermarker code can´t work.
The variable "outermarker" has only the value 0 from greation.
you can write val into outermarker than is everything ok, but that is all code for nothing.
What a polling time you use for this objekts?
I would use FS_QUICK.
Stefan
-
07-17-2009, 07:54 AM #157
Re: Progamming help with FSBus dll
I'm using normal polling time. I will change it to quick, get rid of the pointless code and try again.
I only tried the extra code as the led's were not working.
Do I need to define val?
Thanks
-
07-17-2009, 07:57 AM #158
- Join Date
- Feb 2008
- Location
- Krefeld, Germany
- Posts
- 318
Re: Progamming help with FSBus dll
no, val is define wit "void cbIndicatorlights (int oid, int val, double dval)".
-
07-17-2009, 08:18 AM #159
Re: Progamming help with FSBus dll
Found my error, I didn't declare cbIndicatorlightsBuildObject in cockpit.cpp
Did that, now I have an error on compiling in the dos window:
FSBUS DLL:
102 is not an fsbus object
any ideas what that means?
-
07-17-2009, 08:21 AM #160
- Join Date
- Feb 2008
- Location
- Krefeld, Germany
- Posts
- 318
Re: Progamming help with FSBus dll
an error with your OID define on object 102.
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
Casual Encounters Made Simple in Your City Pretty Girls from your city for night...
P3D V4 FMGS B47 Aircraft issue