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
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