PDA

View Full Version : Radio Altimeter SIOC script Help!!



Stijn
08-23-2011, 04:06 PM
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,

Stijn

737NUT
08-23-2011, 07:19 PM
Whats showing up in IOCP console? Anything at all?

Stijn
08-23-2011, 07:24 PM
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

deering
08-23-2011, 07:41 PM
Stijn,

&RaltOffst = L2

should be

V0001 = L2

Jim.

Stijn
08-23-2011, 08:00 PM
Thanks Jim,

Works great


Stijn