Results 41 to 50 of 737
Thread: Progamming help with FSBus dll
-
06-07-2009, 09:09 PM #41
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:
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;
Hope you can help.
David
-
06-07-2009, 10:13 PM #42
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.
-
06-08-2009, 01:42 AM #43
- Join Date
- Feb 2008
- Location
- Krefeld, Germany
- Posts
- 318
Hi,
is your FS_TURNCOORD objekt TP_I8???
Regards,
Stefan
-
06-08-2009, 05:12 AM #44
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.
-
Post Thanks / Like - 1 Thanks, 0 Likes, 0 Dislikessgaert thanked for this post
-
06-08-2009, 05:35 AM #45
- Join Date
- Feb 2008
- Location
- Krefeld, Germany
- Posts
- 318
If you look on 0x036E with FSInterogate, do you see negativ Values?
-
06-08-2009, 05:37 AM #46
FSInterogate only gave me minus numbers in the Factored column.
-
06-08-2009, 05:48 AM #47
- Join Date
- Feb 2008
- Location
- Krefeld, Germany
- Posts
- 318
Ok i will check that after work.
What shows FSInterogate on the 8bit column?
-
06-08-2009, 06:00 AM #48
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.
-
06-08-2009, 06:14 AM #49
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
-
06-08-2009, 07:18 AM #50
- Join Date
- Feb 2008
- Location
- Krefeld, Germany
- Posts
- 318
Ok that ist realy strange.
I don磘 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
Similar Threads
-
Fsbus CDK
By flyandre in forum General Builder Questions All Aircraft TypesReplies: 4Last Post: 12-27-2014, 12:58 PM -
Need Help Getting My FSBUS NG I/O Going Again..
By JBRoberts in forum I/O Interfacing Hardware and SoftwareReplies: 14Last Post: 03-21-2010, 01:38 PM -
Fsbus ng io
By Davral in forum I/O Interfacing Hardware and SoftwareReplies: 0Last Post: 01-10-2009, 10:38 PM -
Fsbus 2.4.3
By Anderson/SBSP in forum I/O Interfacing Hardware and SoftwareReplies: 9Last Post: 11-30-2008, 04:25 PM -
Help FSBUS
By cesarfsim in forum I/O Interfacing Hardware and SoftwareReplies: 2Last Post: 10-26-2008, 02:23 PM
Looking for Fun? Connect with Women Seeking Casual Encounters in Your Town
JH startup on Client PC