-
Re: Progamming help with FSBus dll
Quote:
Originally Posted by
sgaert
Next try.
Code:
static int ADF1RelDataIn;
static int ADF1RelDataSave;
static int ADF1RelDataDif;
static int ADF1RelNeedlegoto;
static int ADF1RelNeedleSave;
static int ADF1RelNeedleDif;
static int ADF1RelNeedleDeg = 65536;
float ADF1RelNeedleMulti;
//static int ADF1RelNeedleStep = 1150;
static int ADF1RelNeedleStep = 1400;
case FS_ADF1RELATIVEBEARING:
printf("Data in: %d\n",val);
ADF1RelNeedleMulti = ADF1RelNeedleDeg/ADF1RelNeedleStep;
ADF1RelDataDif = ADF1RelDataIn - ADF1RelDataSave;
if ( ADF1RelDataDif > ADF1RelNeedleDeg/2)
ADF1RelDataDif = ADF1RelNeedleDeg-ADF1RelDataDif;
else if (ADF1RelDataDif < (ADF1RelNeedleDeg/2 * -1))
ADF1RelDataDif = ADF1RelNeedleDeg+ADF1RelDataDif;
printf("ADF1RelDataDif: %d\n",ADF1RelDataDif);
ADF1RelNeedleDif = ADF1RelDataDif / ADF1RelNeedleMulti;
ADF1RelNeedlegoto = ADF1RelNeedleSave + ADF1RelNeedleDif;
FsbusWriteFmtVar(29,80,ADF1RelNeedlegoto);
printf("ADF1RelNeedlegoto: %d\n",ADF1RelNeedlegoto);
ADF1RelNeedleSave = ADF1RelNeedlegoto;
ADF1RelDataSave = ADF1RelDataIn;
printf("ADF1RelNeedleDif: %d\n",ADF1RelNeedleDif);
break;
please fly 1x 360 left and 1x 360 right and report the datalog.
Hi Stefan,
Sorry had to go out for a while.
I'll do this now and report back. Should take about 15 mins to boot everything up, change the code etc.
David
-
Re: Progamming help with FSBus dll
Ok, this is with the new code you have just given me:
(Oh, there was no needle movement on my stepper gauges)
Data in: -26469
ADF1RelDataDif: 0
ADF1RelNeedlegoto: 0
ADF1RelNeedleDif: 0
Data in: -26686
ADF1RelDataDif: 0
ADF1RelNeedlegoto: 0
ADF1RelNeedleDif: 0
Data in: -26907
ADF1RelDataDif: 0
ADF1RelNeedlegoto: 0
ADF1RelNeedleDif: 0
Data in: -27437
ADF1RelDataDif: 0
ADF1RelNeedlegoto: 0
ADF1RelNeedleDif: 0
Data in: -27654
ADF1RelDataDif: 0
ADF1RelNeedlegoto: 0
ADF1RelNeedleDif: 0
Data in: -27907
ADF1RelDataDif: 0
ADF1RelNeedlegoto: 0
ADF1RelNeedleDif: 0
Data in: -28124
ADF1RelDataDif: 0
ADF1RelNeedlegoto: 0
ADF1RelNeedleDif: 0
Data in: -28589
ADF1RelDataDif: 0
ADF1RelNeedlegoto: 0
ADF1RelNeedleDif: 0
Data in: -28806
ADF1RelDataDif: 0
ADF1RelNeedlegoto: 0
ADF1RelNeedleDif: 0
Data in: -29023
ADF1RelDataDif: 0
ADF1RelNeedlegoto: 0
ADF1RelNeedleDif: 0
Data in: -29466
ADF1RelDataDif: 0
ADF1RelNeedlegoto: 0
ADF1RelNeedleDif: 0
Data in: -29683
ADF1RelDataDif: 0
ADF1RelNeedlegoto: 0
ADF1RelNeedleDif: 0
Data in: -29900
ADF1RelDataDif: 0
ADF1RelNeedlegoto: 0
ADF1RelNeedleDif: 0
Data in: -30293
ADF1RelDataDif: 0
ADF1RelNeedlegoto: 0
ADF1RelNeedleDif: 0
Data in: -30473
ADF1RelDataDif: 0
ADF1RelNeedlegoto: 0
ADF1RelNeedleDif: 0
Data in: -30726
ADF1RelDataDif: 0
ADF1RelNeedlegoto: 0
ADF1RelNeedleDif: 0
Data in: -31033
ADF1RelDataDif: 0
ADF1RelNeedlegoto: 0
ADF1RelNeedleDif: 0
Data in: -31255
ADF1RelDataDif: 0
ADF1RelNeedlegoto: 0
ADF1RelNeedleDif: 0
Data in: -31508
ADF1RelDataDif: 0
ADF1RelNeedlegoto: 0
ADF1RelNeedleDif: 0
Data in: -31689
ADF1RelDataDif: 0
ADF1RelNeedlegoto: 0
ADF1RelNeedleDif: 0
Data in: -32001
ADF1RelDataDif: 0
ADF1RelNeedlegoto: 0
ADF1RelNeedleDif: 0
Data in: -32217
ADF1RelDataDif: 0
ADF1RelNeedlegoto: 0
ADF1RelNeedleDif: 0
Data in: -32434
ADF1RelDataDif: 0
ADF1RelNeedlegoto: 0
ADF1RelNeedleDif: 0
Data in: -32709
ADF1RelDataDif: 0
ADF1RelNeedlegoto: 0
ADF1RelNeedleDif: 0
Data in: 32602
ADF1RelDataDif: 0
ADF1RelNeedlegoto: 0
ADF1RelNeedleDif: 0
Data in: 32384
ADF1RelDataDif: 0
ADF1RelNeedlegoto: 0
ADF1RelNeedleDif: 0
Data in: 32178
ADF1RelDataDif: 0
ADF1RelNeedlegoto: 0
ADF1RelNeedleDif: 0
Data in: 31953
ADF1RelDataDif: 0
ADF1RelNeedlegoto: 0
ADF1RelNeedleDif: 0
Data in: 31736
ADF1RelDataDif: 0
ADF1RelNeedlegoto: 0
ADF1RelNeedleDif: 0
Data in: 31522
ADF1RelDataDif: 0
ADF1RelNeedlegoto: 0
ADF1RelNeedleDif: 0
Data in: 31296
ADF1RelDataDif: 0
ADF1RelNeedlegoto: 0
ADF1RelNeedleDif: 0
Data in: 31072
ADF1RelDataDif: 0
ADF1RelNeedlegoto: 0
ADF1RelNeedleDif: 0
Data in: 30916
ADF1RelDataDif: 0
ADF1RelNeedlegoto: 0
ADF1RelNeedleDif: 0
Data in: 30724
ADF1RelDataDif: 0
ADF1RelNeedlegoto: 0
ADF1RelNeedleDif: 0
Data in: 30459
ADF1RelDataDif: 0
ADF1RelNeedlegoto: 0
ADF1RelNeedleDif: 0
Data in: 30329
ADF1RelDataDif: 0
ADF1RelNeedlegoto: 0
ADF1RelNeedleDif: 0
Data in: 30106
ADF1RelDataDif: 0
ADF1RelNeedlegoto: 0
ADF1RelNeedleDif: 0
Data in: 29853
ADF1RelDataDif: 0
ADF1RelNeedlegoto: 0
ADF1RelNeedleDif: 0
Data in: 29636
ADF1RelDataDif: 0
ADF1RelNeedlegoto: 0
ADF1RelNeedleDif: 0
Data in: 29481
ADF1RelDataDif: 0
ADF1RelNeedlegoto: 0
ADF1RelNeedleDif: 0
Data in: 29255
ADF1RelDataDif: 0
ADF1RelNeedlegoto: 0
ADF1RelNeedleDif: 0
Data in: 29037
ADF1RelDataDif: 0
ADF1RelNeedlegoto: 0
ADF1RelNeedleDif: 0
Data in: 28941
ADF1RelDataDif: 0
ADF1RelNeedlegoto: 0
ADF1RelNeedleDif: 0
Data in: 28722
ADF1RelDataDif: 0
ADF1RelNeedlegoto: 0
ADF1RelNeedleDif: 0
Data in: 28512
ADF1RelDataDif: 0
ADF1RelNeedlegoto: 0
ADF1RelNeedleDif: 0
Data in: 28408
ADF1RelDataDif: 0
ADF1RelNeedlegoto: 0
ADF1RelNeedleDif: 0
Data in: 28196
ADF1RelDataDif: 0
ADF1RelNeedlegoto: 0
ADF1RelNeedleDif: 0
Data in: 28005
ADF1RelDataDif: 0
ADF1RelNeedlegoto: 0
ADF1RelNeedleDif: 0
Data in: 27960
ADF1RelDataDif: 0
ADF1RelNeedlegoto: 0
ADF1RelNeedleDif: 0
Data in: 27776
ADF1RelDataDif: 0
ADF1RelNeedlegoto: 0
ADF1RelNeedleDif: 0
Data in: 27598
ADF1RelDataDif: 0
ADF1RelNeedlegoto: 0
ADF1RelNeedleDif: 0
Data in: 27568
ADF1RelDataDif: 0
ADF1RelNeedlegoto: 0
ADF1RelNeedleDif: 0
Data in: 27415
ADF1RelDataDif: 0
ADF1RelNeedlegoto: 0
ADF1RelNeedleDif: 0
Data in: 27259
ADF1RelDataDif: 0
ADF1RelNeedlegoto: 0
ADF1RelNeedleDif: 0
Data in: 27277
ADF1RelDataDif: 0
ADF1RelNeedlegoto: 0
ADF1RelNeedleDif: 0
Data in: 27145
ADF1RelDataDif: 0
ADF1RelNeedlegoto: 0
ADF1RelNeedleDif: 0
Data in: 27024
ADF1RelDataDif: 0
ADF1RelNeedlegoto: 0
ADF1RelNeedleDif: 0
Data in: 26910
ADF1RelDataDif: 0
ADF1RelNeedlegoto: 0
ADF1RelNeedleDif: 0
Data in: 26968
ADF1RelDataDif: 0
ADF1RelNeedlegoto: 0
ADF1RelNeedleDif: 0
Data in: 26848
ADF1RelDataDif: 0
ADF1RelNeedlegoto: 0
ADF1RelNeedleDif: 0
Data in: 26770
ADF1RelDataDif: 0
ADF1RelNeedlegoto: 0
ADF1RelNeedleDif: 0
Data in: 26841
ADF1RelDataDif: 0
ADF1RelNeedlegoto: 0
ADF1RelNeedleDif: 0
Data in: 26756
ADF1RelDataDif: 0
ADF1RelNeedlegoto: 0
ADF1RelNeedleDif: 0
Data in: 26691
ADF1RelDataDif: 0
ADF1RelNeedlegoto: 0
ADF1RelNeedleDif: 0
Data in: 26801
ADF1RelDataDif: 0
ADF1RelNeedlegoto: 0
ADF1RelNeedleDif: 0
Data in: 26747
ADF1RelDataDif: 0
ADF1RelNeedlegoto: 0
ADF1RelNeedleDif: 0
Data in: 26725
ADF1RelDataDif: 0
ADF1RelNeedlegoto: 0
ADF1RelNeedleDif: 0
Data in: 26816
ADF1RelDataDif: 0
ADF1RelNeedlegoto: 0
ADF1RelNeedleDif: 0
Data in: 26785
ADF1RelDataDif: 0
ADF1RelNeedlegoto: 0
ADF1RelNeedleDif: 0
Data in: 26765
ADF1RelDataDif: 0
ADF1RelNeedlegoto: 0
ADF1RelNeedleDif: 0
Data in: 26900
ADF1RelDataDif: 0
ADF1RelNeedlegoto: 0
ADF1RelNeedleDif: 0
Data in: 26887
ADF1RelDataDif: 0
ADF1RelNeedlegoto: 0
ADF1RelNeedleDif: 0
Data in: 26882
ADF1RelDataDif: 0
ADF1RelNeedlegoto: 0
ADF1RelNeedleDif: 0
Data in: 26965
ADF1RelDataDif: 0
ADF1RelNeedlegoto: 0
ADF1RelNeedleDif: 0
-
Re: Progamming help with FSBus dll
Strange, can you start teamviewer and skype?
-
Re: Progamming help with FSBus dll
haha :p
big fault add that line as first line in the case
ADF1RelDataIn = val;
-
Re: Progamming help with FSBus dll
Hi Guys,
I just want to know if you have made some progress with version 3 of the dll=
I.e. the flap gauge with a steppenmotor.
Best regards
Jan Geurtsen
-
Re: Progamming help with FSBus dll
Hi Jan,
i used a Servo.
Stefan
-
Re: Progamming help with FSBus dll
Hi everyone,
Well it's been a while since I've been here or posted.
After completing my sim (well about 99%) which took over 6 years, I spent a couple of months flying it.
I have now spent the last few weeks dismantling it all. I now have a garage again (it makes my wife happy as it's now also her office).
I intend to build a fixed platform generic cockpit in the near future, but far less elaborate than the 2 DOF fully enclosed monster I built, that could only be moved on a very large tandem axle trailer, and only fitted one person inside. (bit boring not being able to share the experience).
I absolutely enjoy and respect this community and will keep you updated on my progress over time.
I would also like to thank Stefan for his patience and unwavering support and assistance.
Speak to you all soon.
David
-
Re: Progamming help with FSBus dll
Quote:
Originally Posted by
RobiD
Ok, after much testing, here is the solution!!!
Add this at the top with the rest of the static int:
Code:
static int GlideslopeHold = 0;
Then uncomment out:
Code:
MkFsObject(FS_AP_GLIDESLOPEHOLD, "",cbModecontrolpanel, 0x07FC, 4, TP_UI32, FS_NORMAL, 0);
Then change this:
Code:
case C_SAPP:
if (val == 0) // button push only
{
ApproachHold = (ApproachHold == 0) ? 1 : 0; // toggle
FsWriteInt(FS_AP_APPROACHHOLD, ApproachHold);
}
break;
to this:
Code:
case C_SAPP:
if (val == 0) // button push only
{
ApproachHold = (ApproachHold == 0) ? 1 : 0; // toggle
FsWriteInt(FS_AP_APPROACHHOLD, ApproachHold);
GlideslopeHold = (GlideslopeHold == 0) ? 1 : 0;
FsWriteInt(FS_AP_GLIDESLOPEHOLD, GlideslopeHold);
}
break;
Have tested and works for me.
Let me know if it works for you too.
David
Hi David
Do you still frequent this forum?
Would greatly appreciate your help re the code here..I too have the exact same problem in FSBUS but am using the CDK not dll.
John
-
Re: Progamming help with FSBus dll
An Update
I have bitten the bullet and hope to go the FSBUS DLL route although I have no programmer DNA whatsoever..
I have looked at a few examples of .h and .cpp and they seem to contradict the stuff in the fsbus dll "manual" or at least Icannot see the relationship.
Just an update
John
-
Re: Progamming help with FSBus dll
Hello,
I need to set 7 segments display value to show dash lines "---".
How to set it in Fsbus?
-
Re: Progamming help with FSBus dll
Quote:
Originally Posted by
ciccio85
Hello,
I need to set 7 segments display value to show dash lines "---".
How to set it in Fsbus?
Hi,
you have to use DISPLAY_BAR as value in the FsbusWrite call.
Sample:
FsbusWrite (IASDisplay, DISPLAY_BAR);
Stefan
-
Re: Progamming help with FSBus dll
Quote:
Originally Posted by
sgaert
Hi,
you have to use DISPLAY_BAR as value in the FsbusWrite call.
Sample:
FsbusWrite (IASDisplay, DISPLAY_BAR);
Stefan
Well it works! How to set the other special characters like S, t, d, E? And how to set a single dash, like "-1000".
Thanks for your help!
Francesco
-
Re: Progamming help with FSBus dll
Quote:
Originally Posted by
ciccio85
Well it works! How to set the other special characters like S, t, d, E? And how to set a single dash, like "-1000".
Thanks for your help!
Francesco
Single Characters are very compilcated.
You have DISPLAY_STD or DISPLAY_Std that writes all 3 characters.
For -1000 send the value -1000.
Stefan
-
Re: Progamming help with FSBus dll
Hi Everyone
I need some help with programming fsbus dll. I'm trying to programming master caution button, master fire warn button and sixpack in fsbus dll, but I can't find fsuipc offsets for this. Did anyone can help me find it? Or maybe someone write program for sixpack and could share it with me?
-
Re: Progamming help with FSBus dll
Hello, How to read RID for LED's ? On I/O Board? 0-63 are buttons that i can check button RIDs in FSBUS Admin... How about Output and LEDs?
-
Re: Progamming help with FSBus dll
Hi all,<o:p></o:p>
I'm new to this. I have made a FSBUS COM board and the Display board (six pack) and they work fine with FSBUS Admin. But I don’t know where to go from here. I was wondering if someone can give me the C++ code and instructions on how to make the Six Pack Display show what I see in Flight Sim MCP displays. Such as the set air speed, course, vertical speed, altitude. Any info will greatly appreciated.<o:p></o:p>
-
Re: Progamming help with FSBus dll
hi Michaelra
I use the FSBUS CDK
I have to say I am useless at it but got my MCP working with the default 737's
I still am struggling getting the button anunciators working with my Ifly 737
You are welcome to the CDK files I have
Most came from Job Van Dijk and I simply altered the values to suit the CID's ect
Its a MASSIVE learning curve if you don't have programming skill ( I dont!!)
John
-
Re: Progamming help with FSBus dll
Hi wozinakair
I am struggling with that too. (at least in the ifly 737) for the default aircraft. the offsets (addresses) can be monitored in FS Interrogate. ...
The theory being....see which address changes when the led on screen lights and use that address in your ini file for the airplane (in my case its b737ng_glareshield.ini assuming you are using the CDK)
here's a bit of the file I mean. (again this is not my work Rob Van Djik gets all the credit ....check his site out)
you are intersted in the entries "DOUT" (digital out)
'FSBUS Basic (DA 2006/2007)
'B737NG - Glareshield
'R.F. van Dijk (intro)
'
'COCKPIT COMPONENTS - MCP
'-------------------------------------------------------------------------------
'C NAME TYPE CID RID FLAGS P1 P2 P3
'-------------------------------------------------------------------------------
C, CDCourseL, DISPLAY, 13, 0, LEADZERO, 3, 3, 0
C, CDCourseR, DISPLAY, 16, 0, LEADZERO, 3, 3, 0
C, CDIas, DISPLAY, 14, 0, , 4, 2, 0
C, CDHeading, DISPLAY, 15, 0, LEADZERO, 3, 3, 0
C, CDAltitude, DISPLAY, 17, 0, LEADZERO, 5, 1, 0
C, CDVertSpeed, DISPLAY, 18, 0, , 0, 0, 0
C, CRCourseLR, ROTARY, 3, 44, , 0, 0
C, CRIas, ROTARY, 3, 60, , 0, 0
C, CRHeading, ROTARY, 3, 62, , 0, 0
C, CRAltitude, ROTARY, 3, 56, , 0, 0
C, CRVertSpeed, ROTARY, 3, 58, , 0, 0
C, CSFlightDirL, SWITCH, 3, 43, TOGGLE, 0, 0
C, CSFlightDirR, SWITCH, 10, 58, TOGGLE, 0, 0
C, CSATArmed, SWITCH, 3 , 42, NEGEDGE|TOGGLE, 0, 0
C, CSN1, SWITCH, 3, 16, NEGEDGE|TOGGLE, 0, 0
C, CSSpdHld, SWITCH, 3, 49, NEGEDGE|TOGGLE, 0, 0
C, CSSpdIntv, SWITCH, 3, 46, NEGEDGE|TOGGLE, 0, 0
C, CSChangeOver, SWITCH, 3, 47, NEGEDGE|TOGGLE, 0, 0
C, CSVNav, SWITCH, 3, 32, NEGEDGE|TOGGLE, 0, 0
C, CSLNav, SWITCH, 3, 34, NEGEDGE|TOGGLE, 0, 0
C, CSLvlChg, SWITCH, 3, 18, NEGEDGE|TOGGLE, 0, 0
C, CSHdgLock, SWITCH, 3, 19, NEGEDGE|TOGGLE, 0, 0
C, CSVorLoc, SWITCH, 3, 33, NEGEDGE|TOGGLE, 0, 0
C, CSApp, SWITCH, 3, 20, NEGEDGE|TOGGLE, 0, 0
C, CSAltHld, SWITCH, 3, 21, NEGEDGE|TOGGLE, 0, 0
C, CSAltIntv, SWITCH, 3, 39, NEGEDGE|TOGGLE, 0, 0
C, CSVertSpdHld, SWITCH, 3, 48, NEGEDGE|TOGGLE, 0, 0
C, CSCMDA, SWITCH, 3, 36, POSEDGE, 0, 0
C, CSCMDB, SWITCH, 3, 38, POSEDGE, 0, 0
C, CSCWSA, SWITCH, 3, 35, POSEDGE, 0, 0
C, CSCWSB, SWITCH, 3, 37, POSEDGE, 0, 0
C, CSAPDiseng, SWITCH, 3, 50, NEGEDGE, 0, 0
C, CLFlightDirL, DOUT, 3, 00, , 0, 0
C, CLFlightDirR, DOUT, 3, 00, , 0, 0
C, CLMastFlightL, DOUT, 10, 33, , 0, 0
C, CLMastFlightR, DOUT, 10, 44, , 0, 0
C, CLATArmed, DOUT, 3, 8, , 0, 0
C, CLN1, DOUT, 3, 07, , 0, 0
C, CLSpdHld, DOUT, 3, 06, , 0, 0
C, CLVNav, DOUT, 3, 5, , 0, 0
C, CLLNav, DOUT, 3, 1, , 0, 0
C, CLLvlChg, DOUT, 3, 4, , 0, 0
C, CLHdgLock, DOUT, 3, 3, , 0, 0
C, CLVorLoc, DOUT, 3, 2, , 0, 0
C, CLApp, DOUT, 3, 15, , 0, 0
C, CLAltHld, DOUT, 3, 14, , 0, 0
C, CLVertSpdHld, DOUT, 3, 13, , 0, 0
C, CLCMDA, DOUT, 3, 9, , 0, 0
C, CLCMDB, DOUT, 3, 10, , 0, 0
C, CLCWSA, DOUT, 3, 12, , 0, 0
C, CLCWSB, DOUT, 3, 11, , 0, 0
C, CLAPDisengL, DOUT, 10, 53, , 0, 0
C, CLAPDisengR, DOUT, 10, 54, , 0, 0
'ACCUMULATOR - MCP
'-------------------------------------------------------------------------------
'A NAME MIN MAX FLAGS
'-------------------------------------------------------------------------------
A, ACourse, 1, 360, WRAPAROUND
A, AIas, 0, 500,
A, AMach, 0, 99,
A, AHeading, 1, 360, WRAPAROUND
A, AAltitude, -100, 50000,
A, AVertSpeed, -5000, 5000,
but the offsets dont match the format with the ifly planes....I think its probably the different programming languages involved.......probably wrong on that .
or have I miss understood your question?
John
-
Re: Progamming help with FSBus dll
Quote:
Originally Posted by
John_B
hi Michaelra
I use the FSBUS CDK
I have to say I am useless at it but got my MCP working with the default 737's
I still am struggling getting the button anunciators working with my Ifly 737
You are welcome to the CDK files I have
Most came from Job Van Dijk and I simply altered the values to suit the CID's ect
Its a MASSIVE learning curve if you don't have programming skill ( I dont!!)
John
Hi John,
It would be great to have your CDK. Can you send it or how can I get it?
Some instruction on what I'm supposed to do with them would be much appriciated.
Michael
-
Re: Progamming help with FSBus dll
Hi Michael
Not sure if my answer posted correctly so here's another go
I might add here:- I only work with the 737 whether its the same for all aircraft I have no idea.
If you let me have you email Addy via a private message we can sort out getting the cdk and stuff to you.
As for telling you how to do it I can only give you the VERY basics as I am at a loss..I have the manual but they might as well be written in latin I have no programmer DNA in me..
Although the displays seemed quite straightforward (well they were for me cos they are working LOL)
I am sure we will get there especially if we can get a few more FSBUS users/newbies on board!!!
I have just finished building myself a 737 TQ not had a chance to start connecting it as my PC died the same day ...awaiting parts for the new machine as I type.
I thought this hobby was supposed to be fun
John
-
Re: Progamming help with FSBus dll
Hi MIchael
How ya getting on with it?
John
-
Re: Progamming help with FSBus dll
Hi John,
I'm thrilled to announce to yo that, with your genrous help, the display is working!
There is a about a second lag in displaying but apart from that all's very good.
Michael
-
Re: Progamming help with FSBus dll
Hi Michael
Wahoo
That is SO cool
I think that when the dab and all the ini files are included with nothing unused the lag gets much shorter!
The nice thing about the displays (so I have found so far)
That the offsets are the same in the default aircraft are the same as the add on ones I only use the ifly now though!
So whats the next project?
Heres a pic of what I have just finished (but so far have not hooked up to FSBUS as my pc died)
http://www.junkroom.co.uk/throttle-quad.jpg
-
Re: Progamming help with FSBus dll
Hi John,<o:p></o:p>
Your throttle quadrant if just fantastic. I have made one too. It’s made of wood and its very crude by your standard. But it was just to check thing out. I'll try to do the final one a bit better. How did you turn out such a masterpiece?<o:p></o:p>
I started my cockpit project on the MJOY16 as this was easy. But soon found out, it also was limited. Therefore I’m trying to get into FSBUS.
Michael
-
Re: Progamming help with FSBus dll
Heya Michael
oops we are getting off topic.......so I will email you
John
-
Re: Progamming help with FSBus dll
Hello, i'm programming A320 Master Warning leds, and these leds are intermittent. How to do the intermittent light in c++?
-
Re: Progamming help with FSBus dll
Hi Ciccio85
Unfortunately I do not know any programming (have tried to learn and failed).
By intermittent do you mean flashing?
If so (and you know how to make a normal led light up) you could use a "flashing led "
Just an idea.....not having any programmer DNA I have to use these kind of work arounds.
I hope a few C+ programmers will get involved in this thread.
John
-
Re: Progamming help with FSBus dll
Quote:
Originally Posted by
John_B
Hi Ciccio85
Unfortunately I do not know any programming (have tried to learn and failed).
By intermittent do you mean flashing?
If so (and you know how to make a normal led light up) you could use a "flashing led "
Just an idea.....not having any programmer DNA I have to use these kind of work arounds.
I hope a few C+ programmers will get involved in this thread.
John
Yes, i need flashing led in C++.
-
Re: Progamming help with FSBus dll
Hi all
Just wondered how you guys are getting on with FSBUS (CDK)?
I got most things, I have, working in the default 737 but the offsets are a bit different for my iFly 737 ( BTW Fabulous aircraft if you are interested )
I thought I was doing great until I discovered I cannot find a way to address a specific bit in an offset.
For example for the light switches on the overhead use offset 0x0D0C and the bits 0,1,2,3,4,etc are the individual lights (8 per offset)
I was kindly sent an "ini" file which I got real exited about cos I thought it showed how to do it BUT (there's always a BUT!!!!) I am sure it is not for FSBUS :( as I cannot see any way to define a data type "BIT" .
Maybe I am overlooking something.
Any input anyone???
Please also it would be great if any FSBUS FSBUS (CDK) users chip in here..I am sure there are still some of us out there and I am also sure between us we "can crack this nut"
John
-
Re: Progamming help with FSBus dll
Quote:
Originally Posted by
John_B
Hi all
Just wondered how you guys are getting on with FSBUS (CDK)?
I got most things, I have, working in the default 737 but the offsets are a bit different for my iFly 737 ( BTW Fabulous aircraft if you are interested )
I thought I was doing great until I discovered I cannot find a way to address a specific bit in an offset.
For example for the light switches on the overhead use offset 0x0D0C and the bits 0,1,2,3,4,etc are the individual lights (8 per offset)
I was kindly sent an "ini" file which I got real exited about cos I thought it showed how to do it BUT (there's always a BUT!!!!) I am sure it is not for FSBUS :( as I cannot see any way to define a data type "BIT" .
Maybe I am overlooking something.
Any input anyone???
Please also it would be great if any FSBUS FSBUS (CDK) users chip in here..I am sure there are still some of us out there and I am also sure between us we "can crack this nut"
John
Hello,
use the FSBUS dll instend of the CDK. It's more and more powerful. I know how to write single bits on an offset, but only with dll and C++. If you like i can help you but only with dll's.
Ciccio
-
Re: Progamming help with FSBus dll
Hi Ciccio
Thank you for the very kind offer.. although you might live to regret it ;).
I have struggled enough to learn the little I know about CDK so I will be starting as a complete beginner with DLL even after reading or trying to read the documentation that comes with it.
I have also, over the years, tried to learn C from books but I have come to the conclusion I have no programming DNA in me.Its very frustrating as I am not an idiot (I have even got a degree in mechatronics...but have forgotten all of it !!!)...but is= all just seems foreign to me.
I have tried with "samples" but they make no sense especially how they always are an example of something obscure..I know its to just give an idea but unless I can relate it to a real thing I have less than no hope........
John
-
Re: Progamming help with FSBus dll
what kind of aircraft are you building? what kind of FSBUS interfaces have you built?
-
Re: Progamming help with FSBus dll
Hi
A 737 800 ish (iFly) captains side only (no space!)
I have
1x COM (ng)
2x I/O
1x Display 6 pack
2x Display 2 pack
Plus below not used so far but tested in fs admin
1x DO64
2x servo
Panels made so far
MCP
Nav Radio
VHF Radio
The above are used and for the most part working (CDK)
Below are built but not tested with a cockpit
Throttle quadrant.
EFIS
Landing gear lever
Flaps gauge still in prototype.
John
ps
I bought a laser cutter and engraver to make my parts so if you want any bits made let me know!
-
Re: Progamming help with FSBus dll
WAHOO:-)
You are not going to believe this BUT I have found a way !!!!!!!!!!!!!!!!!!! Hours of trial and error !:cool:
I have set two switches to turn two lights (on the same offset) on and off.They do not interact (so it seems) with anything else that should not be turning on and off.
For those interested here's and excerpt from my trial ini file
'Flight sim component
' Name ID Offset Type Mul Div Interval Param Flags
'----------------------------------------------------------------------
F, FLLIGHT, 0, 0x0D0C, I16, 1, 1, 1, 1, RW|BIT
F, FTAXION, 0, 0x0D0C, I16, 1, 1, 1, 3, RW|BIT
The Param number being the BIT you want to access 0,1,2,3, etc
I could not be happier right now!!...I am sure it won't last.
Next stop is grab a handful of switches and see if all 8 work as they should.
John
-
Re: Progamming help with FSBus dll
Oh very good!! Happy for you. Anyway if you like you can download this c++ code for your 737 from download. It's a good base to start with, and I can help you to adapt it for your hardware and software. :)
So you can engrave. Yes I need some panels for my A320. I have .cad files. What kind of software are you using for your CNC? Price for engraving?
Thanks
Ciccio
-
Re: Progamming help with FSBus dll
Hi Ciccio
Thanks for the link
Its Robs CDK files I started with and altered t get as far as I did unfortunately as its fairly old it doesn't cover the iFly 737 very much as I don't think many of the systems were modeled then (might be wrong)
But as you say a good basis to start with DLL !!!
For panels what formats of cad can you save to?
Have you drawn them? If so what software did you use?
I use Corel draw...only because its really easy LOL.
I have vers 6 and 4 but the laser is directly linked to vers 4
I can import most file types but have found out that some just don't keep accurate dimensions.
As for cost .. how does material costs plus a bit for the laser maintenance sound?...
What colour do you need the base RAL7011 or something similar? (for RAL 7011 I think I'll need to buy a spray as I use a very acceptable locally obtainable grey)
Also, you might be interested, I have a friend that makes very good Boeing knobs etc at really reasonable cost.
I'll send a PM with my email
John
-
Re: Progamming help with FSBus dll
Just to keep up to date!
Really cooking with gas now.
Got the "BIT addressed Leds" working in FSBUS (CDK) ....Long task of writing the files ahead.
Plus a downer..dug out my 64 digital out card only to find at some stage I had spilled etching fluid on it ARGH....all my chips are eroded away too double argh!!!!!!
John
-
Re: Progamming help with FSBus dll
Hi,
i am new in this thread. i have a question about FSBus DLL 3.01. In my Project i created 108 FS-Obj. But only 104 are polled (checked with FsInvalidate). Is there a limit of FS-Obj. FsReadDirect works fine but slows things down. I am using MS C++ 2008 EE. Any idea ?
Dirk
-
Re: Progamming help with FSBus dll
Quote:
Originally Posted by
Kosmo_001
Hi,
i am new in this thread. i have a question about FSBus DLL 3.01. In my Project i created 108 FS-Obj. But only 104 are polled (checked with FsInvalidate). Is there a limit of FS-Obj. FsReadDirect works fine but slows things down. I am using MS C++ 2008 EE. Any idea ?
Dirk
I might be terribly wrong on this :???: as I am struggling to learn this stuff myself.
BUT I do, kinda, recall reading somewhere that you define the number of objects?
Where I don't remember though (am struggling at the moment with an "undefined identifier" so I dare not distract myself by wading through all the bumf I have.)
John
-
Re: Progamming help with FSBus dll
How is everyone? Me, im staring to pick this back up and I cant seem to find all of my files so I have to start over lol - o well