Jump to content
The simFlight Network Forums

Offset 11D0 (TAT)


Recommended Posts

Hello Peter, I noticed that using this offsets, it behaves in a strange way when goin on low temperatures.

When approaching TAT of 0 degrees, the offset normally decreases till 0 and then suddenly jumps to 65353 and as the temperature decrease also this values decrease. Basically once converter / 256, if above 0 degrees it works ok, while when at or below 0 degrees, you have to subtract 255 from the final value. Is it at you thought to model it or should it be corrected?

I use also SAT offset and that one works normally...

Thanks

Edoardo

Link to comment
Share on other sites

When approaching TAT of 0 degrees, the offset normally decreases till 0 and then suddenly jumps to 65353

Temperatures are SIGNED values -- they have to be, of course! 65353 is the unsigned interpretation of -183 (i.e. -0.715 degrees).. You must always treat numbers in the correct way or you will be bound to get wrong answers! In a 16-bit word, signed values go from -32768 to +32767, unsigned from 0 to 65535. There is no such value as 65353 in a 16-bit signed word.

Pete

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.