Jump to content


Photo

Localiser/glideslope capture


  • Please log in to reply
6 replies to this topic

#1 birdstrike

birdstrike

    Member

  • Members
  • PipPip
  • 15 posts
  • LocationDenmark

Posted 31 July 2012 - 08:18 PM

Good evening fellow simmers & cockpitbuilders. :)

I'd basically like to make an LED illuminate, as my aircraft capture the localiser, and another one when I capture the glideslope. But I'm not really sure to which offsets I should pay attention.

My guess would be to use the offset 0C48 for the localiser needle, and the 0C49 for the glideslope needle.

Lets say I'm using the 0C48 to register when i capture the localiser. When the parameters gets between -127 & +127 the localiser needle will be active. Is this correct?

Thanks!
Lasse
  • 0

#2 kiek

kiek

    Advanced Member

  • Members
  • PipPipPip
  • 70 posts
  • Locationu

Posted 31 July 2012 - 10:04 PM

Hi Lasse,

You can do it even better:
  • Take 0C4C for GS alive and 0C49 for GS needle
  • Take bit 1 ( Localiser Tuned in) from 0C4A and 0C48 for LOC needle.

  • 0

#3 birdstrike

birdstrike

    Member

  • Members
  • PipPip
  • 15 posts
  • LocationDenmark

Posted 31 July 2012 - 10:44 PM

Hi Nico,

When in the offset-list it says under 0C4C "NAV1 GS flag: TRUE if GS alive" what excactly does that mean?

I did a quick test on my pc, but the GS doesn't work.

Thanks for your time,
Lasse
  • 0

#4 kiek

kiek

    Advanced Member

  • Members
  • PipPipPip
  • 70 posts
  • Locationu

Posted 01 August 2012 - 06:35 AM

That your radio receives a Glideslope signal. You need that because from the needle values you cannot exactly tell, 127 can be the value at 100 km from the airport (GS not alive), but also when the GS is alive but you are way below the glide.

In my sim the GS offsets work well ...

Same principle as for "Localiser tuned in".
  • 0

#5 Graham Pollitt

Graham Pollitt

    Advanced Member

  • Members
  • PipPipPip
  • 145 posts
  • LocationCheshire, UK

Posted 01 August 2012 - 01:30 PM

Thanks for this info as I will be using these same offsets shortly so this has saved me having to look myself
  • 0

#6 birdstrike

birdstrike

    Member

  • Members
  • PipPip
  • 15 posts
  • LocationDenmark

Posted 01 August 2012 - 02:40 PM

Ok, I understand the principle but having some troubles figuring out how to write this in sioc. Here's what I've got now:

---------------------------------------------------------------------------------------------
Var 0001, name gs_alive, Link FSUIPC_INOUT, Offset $0C4C, Length 1
{
IF &gs_alive = 1
{
&gs_alive_ind = 1
}
IF &gs_alive = 0
{
&gs_alive_ind = 0
}
}

Var 0002, name gs_alive_ind, Link IOCARD_OUT, Device 1, Output 39
Var 0003, name loc_tuned, Link FSUIPC_INOUT, Offset $0C4A, Length 1
{
IF &loc_tuned = 1
{
&loc_tuned_ind = 1
}
IF &loc_tuned = 0
{
&loc_tuned_ind = 0
}
}

Var 0004, name loc_tuned_ind, Link IOCARD_OUT, Device 1, Output 41
----------------------------------------------------------------------------------------------

Obviously the Loc tuned in feature works, but how can I add the needle position?

And the same for the Glideslope? I did a test here for the GS, to see if anything happened when it came alive. Unfortunately nothing happened.

- Lasse
  • 0

#7 kiek

kiek

    Advanced Member

  • Members
  • PipPipPip
  • 70 posts
  • Locationu

Posted 02 August 2012 - 04:48 PM

Hi Lasse,
I can see that you are not a SIOC programmer yet ;-)

Here example SIOC code to display the GS needle and Localiser needle values -if alive- at four digit displays (most left digit blank or minus and then 3 digit value):
You have to update the digit numbers to your hardware.
Have not tested it but this is how you should do it in SIOC.


Var 1 name gs_alive Link FSUIPC_IN Offset $0C4C Length 1
{
  CALL &OUTGS
}

Var 2 name gs Link FSUIPC_IN Offset $0C49 Length 1
{
  CALL &OUTGS
}

Var 3 name  OUTGS LINK SUBRUTINE
{
  IF &gs_alive = 1
  {
	&D_gs = &gs
	IF &gs < 0
	{
	  D_gss = -999998  // minus sign
	}
	ELSE
	{
	  D_gss = -999999  // blank
	}
  }
  ELSE
  {
	&D_gs = -999999  // blank
	&D_gss = -999999  // blank
  }
}

Var 4 name D_gs Link IOCARD_DISPLAY Digit 1 Numbers 3
Var 5 name D_gss Link IOCARD_DISPLAY Digit 4 Numbers 1





Var 10 name loc_tuned Link FSUIPC_IN Offset $0C4A Length 1
{
  &loc_tuned_in = TESTBIT &loc_tuned 1	
}

Var 11 name loc_tuned_in
{
  CALL &OUTLOC

}

Var 12 name loc Link FSUIPC_IN Offset $0C48 Length 1
{
  CALL &OUTLOC
}

Var 13 name  OUTLOC LINK SUBRUTINE
{
  IF &loc_tuned_in = 1
  {
	&D_LOC = &loc
	IF &loc < 0
	{
	  D_locs = -999998  // minus sign
	}
	ELSE
	{
	  D_locs = -999999  // blank
	}
  }
  ELSE
  {
	&D_loc = -999999  // blank
	&D_locs = -999999  // blank
  }
}

Var 14 name D_loc Link IOCARD_DISPLAY Digit 5 Numbers 3
Var 15 name D_locs Link IOCARD_DISPLAY Digit 8 Numbers 1

regards,
Nico
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users


About simFlight - simflight.com - simflight.de - simflight.fr - simflight.nl - simflight.pt - simflight.es - simflight.it - simflight.jp - simrussia.com - simMarket