Results 61 to 70 of 737
Thread: Progamming help with FSBus dll
-
06-09-2009, 07:49 AM #61
- Join Date
- Feb 2008
- Location
- Krefeld, Germany
- Posts
- 318
Yes i know that problem.
Erase the complet Controller with PonyProg and write them new.
Regards,
Stefan
-
Post Thanks / Like - 1 Thanks, 0 Likes, 0 DislikesRobiD thanked for this post
-
06-10-2009, 07:35 AM #62
Re: Progamming help with FSBus dll
Great. Fixed problem.
Now to start on the Glideslope indicator, then the Attitude indicator which is servo for pitch and stepper for bank.
David
-
06-10-2009, 07:44 AM #63
- Join Date
- Feb 2008
- Location
- Krefeld, Germany
- Posts
- 318
Re: Progamming help with FSBus dll
Hi,
sounds good. Why do you use a stepper for bank?
I use also a Servo.
regards,
Stefan
-
06-10-2009, 08:34 AM #64
Re: Progamming help with FSBus dll
It seemed like a good idea at the time because I thought it could move continuously around but I forgot about the wires for the pitch servo.
I could still change it I guess. It would mean making modification only to the very rear deck (I've used Mike's Flightdeck design).
-
06-10-2009, 06:52 PM #65
Re: Progamming help with FSBus dll
Hi all,
in case of problems with FsBus, you can take a look on the website of Rob van Dijk. Together with Dirk Anderseck, he developped the software + PCB's.
http://www.rvdijk.nl/
Greetz,
Dirk
-
06-11-2009, 06:46 AM #66
Re: Progamming help with FSBus dll
Stefan,
Just when I thought I was on a roll of just adding gauges and them working, I've hit another snag. Hope you can help.
The problem is with the Glideslope and Localiser needles.
The servos are fine, all set up in FSAdmin.
The code compiles without error.
I am getting no response from them when I'm in FSX.
Here is the code. ***I have left out unneccessary code that we know works, this is just what I have added for this gauge.
Thanks
David
gauges.h (this is the same as before as I'm declaring the objects in stdafx.h)
#ifndef __GAUGES_H__
#define __GAUGES_H__
void cbGaugesBuildObjects();
void cbGauges (int oid, int val, double dval);
void BuildFsuipcObjects(void);
#endif
gauges.cpp
MkFsbusObject (BTP_A_OUT,C_NAV1LOCSERVO,"Localiser Needle",cbGauges,25,83);
MkFsbusObject (BTP_A_OUT,C_GLIDESLOPESERVO,"Glideslope Needle",cbGauges,25,84);
MkFsObject(FS_NAV1LOCALISER,"Localiser needle",cbGauges, 0x0C48, 1, TP_I8, FS_NONE);
MkFsObject(FS_NAV1GLIDESLOPE,"Glideslope Needle",cbGauges, 0x0C49, 1, TP_I8, FS_NONE);
case FS_NAV1LOCALISER:
{
static CALTAB NAV1LOCALISERIndicator [] = {
{-127,166},{0,89},{127,25}
};
val = Calibrate (val,NAV1LOCALISERIndicator,9);
FsbusWrite (C_NAV1LOCSERVO, val);
}
break;
case FS_NAV1GLIDESLOPE:
{
static CALTAB NAV1GLIDESLOPEIndicator [] = {
{0,141},{118,50},{138,240}
};
val = Calibrate (val,NAV1GLIDESLOPEIndicator,9);
FsbusWrite (C_GLIDESLOPESERVO, val);
}
break;
stdafx.h
#define FS_NAV1LOCALISER OID_GAUGES_GROUP +9
#define C_NAV1LOCSERVO OID_GAUGES_GROUP +10
#define FS_NAV1GLIDESLOPE OID_GAUGES_GROUP +11
#define C_GLIDESLOPESERVO OID_GAUGES_GROUP +12
-
06-11-2009, 07:02 AM #67
- Join Date
- Feb 2008
- Location
- Krefeld, Germany
- Posts
- 318
Re: Progamming help with FSBus dll
Hi,
as first 2 big errors, you dont have 9 records on array.
Please typ
val = Calibrate (val,XXXXX,3);
XXXXX= your lable.
As next, you must enable the FSUIPC polling.
Dont type FS_NONE, you have to use NORMAL or QICK.
Regards,
Stefan
-
06-11-2009, 07:13 AM #68
Re: Progamming help with FSBus dll
So for future reference, the number at the end is the number of arrays you have in the table (val = Calibrate (val,XXXXX,3)
I've made the changes you suggested but still no response from the servos.
Any other thoughts.
Do you want me to post the entire gauges.cpp, gauges.h and stdafx.h files?
Thanks
David
-
06-11-2009, 07:19 AM #69
- Join Date
- Feb 2008
- Location
- Krefeld, Germany
- Posts
- 318
Re: Progamming help with FSBus dll
gauges.cpp
MkFsbusObject (BTP_A_OUT,C_NAV1LOCSERVO,"Localiser Needle",cbGauges,25,83);
MkFsbusObject (BTP_A_OUT,C_GLIDESLOPESERVO,"Glideslope Needle",cbGauges,25,84);
MkFsObject(FS_NAV1LOCALISER,"Localiser needle",cbGauges, 0x0C48, 1, TP_I8, FS_NORMAL);
MkFsObject(FS_NAV1GLIDESLOPE,"Glideslope Needle",cbGauges, 0x0C49, 1, TP_I8, FS_NORMAL);
case FS_NAV1LOCALISER:
{
static CALTAB NAV1LOCALISERIndicator [] = {
{-127,166},{0,89},{127,25}
};
val = Calibrate (val,NAV1LOCALISERIndicator,3);
FsbusWrite (C_NAV1LOCSERVO, val);
}
break;
case FS_NAV1GLIDESLOPE:
{
static CALTAB NAV1GLIDESLOPEIndicator [] = {
{0,141},{118,50},{138,240}
};
val = Calibrate (val,NAV1GLIDESLOPEIndicator,3);
FsbusWrite (C_GLIDESLOPESERVO, val);
}
break;
-
06-11-2009, 08:29 AM #70
Re: Progamming help with FSBus dll
Hummm, not sure what happened, I made the changes you suggested and nothing happened, then I fiddled a bit with the code but didn't really change anything, and now it works.
Thanks as always for your help Stefan.
Regards
David
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
Find Prettys Girls in your city for night
JH startup on Client PC