Results 661 to 670 of 737
Thread: Progamming help with FSBus dll
-
02-14-2011, 02:42 PM #661
- Join Date
- Feb 2008
- Location
- Krefeld, Germany
- Posts
- 318
Re: Progamming help with FSBus dll
Yes that ios marked in the Manual and you compiler also give you a message.
-
02-14-2011, 05:46 PM #662
Re: Progamming help with FSBus dll
Hi Stefan,
Has Dirk made any changes to the version I have as a final release?
Thanks
David
-
02-14-2011, 05:48 PM #663
- Join Date
- Feb 2008
- Location
- Krefeld, Germany
- Posts
- 318
Re: Progamming help with FSBus dll
Yes but only Bug fixes.
-
02-15-2011, 04:17 AM #664
Re: Progamming help with FSBus dll
So I should I download the version from the website and replace the test V3.
Thanks
-
02-15-2011, 04:18 AM #665
- Join Date
- Feb 2008
- Location
- Krefeld, Germany
- Posts
- 318
Re: Progamming help with FSBus dll
thatīs right.
-
02-15-2011, 06:50 AM #666
-
02-15-2011, 07:17 AM #667
- Join Date
- Feb 2008
- Location
- Krefeld, Germany
- Posts
- 318
Re: Progamming help with FSBus dll
that is so easy.
The Problem isnīt the Programming, it is normal mathamatics.
You need to find the right formula, use pen and paper and calculate situations/movings. The very last stepp is to translate that in C++.
dist1-3 are normal int.
//dist3
if (ADF1RelDataSave > 32768 )
{
dist3 = 65536 - ADF1RelDataSave;
}
else
{
dist3 == ADF1RelDataSave;
}
//dist2
if (ADF1RelDataIn > 32768 )
{
dist2 = 65536 - ADF1RelDataIn;
}
else
{
dist2 == ADF1RelDataIn;
}
//dist1
if (ADF1RelDataDif > 0)
{
dist1 == ADF1RelDataDif;
}
else
{
dist1 = ADF1RelDataSave - ADF1RelDataIn;
}
-
02-15-2011, 07:24 AM #668
Re: Progamming help with FSBus dll
So for example if dist2 and dist3 are say 30 degrees either side of zero, work out how many steps are in that 30 degrees, or what the val data would be at that 30 degree point.
-
02-15-2011, 07:35 AM #669
- Join Date
- Feb 2008
- Location
- Krefeld, Germany
- Posts
- 318
Re: Progamming help with FSBus dll
First degreeīs are not relevant only the fsuipc input data!! 0-65536
The Problem is that the Stepper can turn to right and left without a limit.
But the data has only one turn.
Now you need a calculation the how mayīs turn that is.
If you donīt do that the needle goes from 60000 to 10000 in the left way but the rightway is the shortest and the real one.
Now find the formula to check the shortest way and if nesessary add or subtrackt a full circle from the stepper output.
Sample: 1500 data in in the 4 turn, go to 55000 in the 3 turn, what is the stepper output.
try to find the formular.
-
02-15-2011, 08:18 AM #670
Re: Progamming help with FSBus dll
I've just been sitting here reading what you just wrote, then looking at the piece of code you have written, then re-reading what you have just written. I think my head is hurting
So I understand that we are working with the val output of the offset.
I have no idea where to begin to work a formula out like that. I understand the principle of what needs to be achieved, but really no idea.
You mentioned before about a counter to count the number of 360 deg revolutions. From what you have just said, this still needs to be in the code in order to go from 1500 data in in the 4 turn, go to 55000 in the 3 turn.
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
KIDS TEEN 9year GIRL DAUGHTER WEBSITE: OPEN IN AN ANONYMOUS BROWSER (the link does not work in...
Offsets for Trottle