-
Jan,
Stefan is the expert, I'm just learning my way through it.
I have another question Stefan.
I have coded my turn coordinator ball and it compiled without any trouble.
I am using the calibrate function.
I am getting all weird movements on the ball. I wrote a print function and viewed the 0x036E offset and have used FSInterogate.
Previous documentation state (V1) that the numbers go from -127 to 128
In the print function I did get similar numbers but without the minus part.
FSInterogate only gave me minus numbers in the Factored column.
I got it working really easy but can't get it to behave.
Here's the code I've got so far:
<code>
case FS_TURNCOORD:
{
static CALTAB TURNCORDINATORIndicator [] = {
{-127,7},{-100,15},{-60,30},{-30,40},{0,45},{30,55},{60,65},{100,75},{128,85}
};
val = Calibrate (val, TURNCORDINATORIndicator,9);
FsbusWrite (C_TURNCOSERVO, val);
}
break;
</code>
Hope you can help.
David
-
Hmm, that's weird. With the print function, I am getting numbers ascending and descending from 130ish thought to zero and on to 130ish.
There isn't any minus as there should be. should be between -128 and 128
So my turn ball moves and stays only on the right side.
-
Hi,
is your FS_TURNCOORD objekt TP_I8???
Regards,
Stefan
-
Yes it is.
The numbers coming out of FSX don't seem right.
I put a print function on the Turn rate to see if it gave negative numbers and it gave from -512 to +512.
The turn coordinator only gives positive numbers but it should be -128 to +128.
-
If you look on 0x036E with FSInterogate, do you see negativ Values?
-
FSInterogate only gave me minus numbers in the Factored column.
-
Ok i will check that after work.
What shows FSInterogate on the 8bit column?
-
I did it about 9 hours ago so I don't remember off the top of my head but
I'll do it again and give you the numbers. Should take about 10 mins.
-
Standing still on the runway, I get 254 in the 8 bit box and -2 in the factored box.
Hard right rudder (ball hard left) produces 131 in the 8 bit box and -125 in the factored box.
Hard left rudder (ball hard right) produces 126 in the 8 bit box and 126 in the Factored box. (the numbers droped down through 0 then up again as the ball crossed the center)
Ok, that strange.
0 centered first numbers on turning left (ball to the right) is 255 and then reduces the harder the ball moves to the right.
The same the other way so it looks like this:
0-<--100<----255-centered-255--->100--->--0
-
Ok that ist realy strange.
I donīt see a way to readout the factored field.
Did you try an other aircraft?
Last way is to ask Pete about the Offset.
Regards,
Stefan