Results 1 to 10 of 37
Thread: SIOC and Offset 023A
-
04-17-2012, 07:46 AM #1
SIOC and Offset 023A
Hello everyone,
I am trying to use Offset 023A (the Glideslope Indicator Needle) with little success.
The FSUIPC documentation states that it ranges from -127 to +127 (from up to down), however, the SIOC IOCPConsole sees the values going from +138 (top), to +254 (middle), then back to 0 and finishing at around 120 (bottom).
Does anyone know why this offset doesn't appear to give the values it should?
Cheers,
Jack
-
04-17-2012, 08:16 AM #2
- Join Date
- Jul 2013
- Posts
- 917
Re: SIOC and Offset 023A
Jack
I think we may have been here before
Add type 1 to the glideslope offset definition and try that
David
-
04-17-2012, 08:19 AM #3
Re: SIOC and Offset 023A
Hello Jack
Are you sure that's the correct Offset?
-
04-17-2012, 08:58 AM #4
Re: SIOC and Offset 023A
Thank you David, I shall try the type 1 trick. We have have been here before but it was so long ago I can't remember! Did we get anywhere with this? I'm redesigning my HSI scripts because I've lost some of them on my hard drive.
@Perik - According to the FSUIPC SDK documentation, Offset 023A is the glideslope needle indicator. Should I be using a different offset?
Jack
-
04-17-2012, 09:05 AM #5
- Join Date
- Jul 2013
- Posts
- 917
Re: SIOC and Offset 023A
Jack
Here is the link
http://www.mycockpit.org/forums/show...hlight=integer
I found it yesterday when trying to code sioc to drive the elevator trim servos
David
-
04-17-2012, 09:38 AM #6
Re: SIOC and Offset 023A
As you have in your own code from the link David supplied:
Var 53 link FSUIPC_IN Length 1 Offset $023A // seconds of FS time (0 - 59)
$023A seems to not have anything to do with the Glideslope as far as I can see but as usually I may be totally wrong
-
04-17-2012, 10:34 AM #7
Re: SIOC and Offset 023A
Hi Perik,
Yes the offset should be 049C.
On another note, can anyone tell me why this:
Code:Var 0 Value 0 { &control = 0 &control = TIMER 1 0 5 } Var 15 name control Link SUBRUTINE
Cheers,
Jack
-
04-17-2012, 02:11 PM #8
Re: SIOC and Offset 023A
? does it not start?
It should start, see my example of: an endless Timer
regards,
Nico
-
04-17-2012, 03:16 PM #9
Re: SIOC and Offset 023A
this should work too:
Code:&control = TIMER 100000 1 5
Last edited by kiek; 04-17-2012 at 04:51 PM.
-
04-17-2012, 06:21 PM #10
Re: SIOC and Offset 023A
Hi Nico,
After compiling the script I go to IOCPConsole. The "control" variable does not count up.
Cheers,
Jack