PDA

View Full Version : SIOC script for Fuel Temp Servo ?



markusr
11-29-2009, 10:33 AM
Hi guys,

iam trying to find a sioc script that works for the Servo cards to display the actual Fuel Temperature.
How can i calculate this?
I can use the OAT temp to calcualte the fuel temp. But therefore i would need a good formula.
Any ideas? I think the positive is not the problem. When we have an OAT of 20°C the fuel has also 20°. But the negative would be the interesting one.
When i have -40°C how cold is the Fuel in the Tank??

Or if this is too complex, i would go for the first one with the OAT i have figured out the following:
°C(in FS) = varibale $0E8C = variable $0E8C/256 ( variables from FSUIPC Guide)
75°C = 19247 = 50
60°C = 15407 = 40
30°C = 7727 = 30
20°C = 5167 = 20
10°C = 2607 = 10
0°C = 47 = 0
-10°C = 63024 = 246
-20°C = 60464 = 236
-30°C = 57904 = 226
-60°C = 50224 = 196
-95°C = 41264 = 161

But how i can control the servos, when the values are going from + toward 0°C down to 0 and than jumping back up to 63024 and going further down to 41264 ???

Hopefully you can understand my description...
Would appreciate any ideas from you.

Thanks,
Mark

Delphi
11-29-2009, 01:13 PM
Marc,
please sent me a private message as reminder. I will send you my SIOC script for the fuel temperature in a couple of days.

Rueidger

capetonian
11-29-2009, 01:29 PM
This is interesting, .. I'd like to take a look at your script too, .. not that I am that far in my project yet.,.... but I like to jump around from one thing to another :)

Delphi
12-02-2009, 03:28 PM
Hi folks,
SIOC code for the PM fuel temperature gauge:

/////////// Fuel Temperature Gauge /////////////

var 0215, name Servo2, Link USB_SERVOS, Output 2, PosL 1023, PosC 436, PosR 150, Type 2 // Servo Motor
Var 0218, name FuelTemp, Link FSUIPC_INOUT, Offset $56B6, Length 2 // Fuel Temperature + 60 in 10th of C
{
L0 = &FuelTemp / 10
L1 = L0 - 60
L2 = L1 * 6.4 // servo slope
L0 = 550 - L2 // Center 0 Grad Celsius
&Servo2 = L0
}

Regards
Ruediger