Right!
I dont know, nobody give me an arnswer.
Stefan
Printable View
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
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.
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;
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
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
no, val is define wit "void cbIndicatorlights (int oid, int val, double dval)".
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?
an error with your OID define on object 102.