Results 1 to 5 of 5
-
08-23-2011, 04:06 PM #1
Radio Altimeter SIOC script doesn't work Help!!
Hi there,
After succesfully interfacing a real VSI (tutorial will be posted soon!!!!) I like to do the same with a radar altimeter.
Ok, found the offset but still got a problem with the script.:
why doesn't this work?
Var 0000, Value 0 // - Initialization
{
V0001 = 1022
}
Var 0001, Link USB_SERVOS, Output 1, PosL 170, PosC 511, PosR 1022, Type 1 // Radar Altimeter
Var 0010, name RaltOffst, Link FSUIPC_IN, Offset $31E4, Length 4 // Radar Altimeter
{
L0 = &RaltOffst / 19975.3721 // FSUIPC conversion (65536 = 1 Meter --> 19975.3721 = 1 foot)
L1 = L0 * 0.852 // 1000 feet = 852 positions
L2 = 1021 - L1
&RaltOffst = L2
}
Thanks,
StijnLast edited by Stijn; 08-23-2011 at 07:17 PM. Reason: improvement
-
08-23-2011, 07:19 PM #2
Re: Radio Altimeter SIOC script doesn't work Help!!
Whats showing up in IOCP console? Anything at all?
-
08-23-2011, 07:24 PM #3
Re: Radio Altimeter SIOC script doesn't work Help!!
By that you mean what's in the IOCP server box right?
It says: port 8092 and 1 Clients connected
is this what you mean.
because the script should work right?
oh, when loading the script for the VSI the gauge works
Stijn
-
08-23-2011, 07:41 PM #4
- Join Date
- Apr 2009
- Location
- Toronto
- Posts
- 125
Re: Radio Altimeter SIOC script doesn't work Help!!
Stijn,
&RaltOffst = L2
should be
V0001 = L2
Jim.
-
Post Thanks / Like - 1 Thanks, 0 Likes, 0 Dislikes
Stijn thanked for this post
-
08-23-2011, 08:00 PM #5
Re: Radio Altimeter SIOC script Help!!
Thanks Jim,
Works great
Stijn