-
Re: Progamming help with FSBus dll
Autopilot on/off is momentary switch. It only requires 1 rid on the IO board as there are only 2 wires coming from the switch.
FD is a toggle on/off so only 2 wires and 1 rid
NAV is also a momentary switch 1 rid.
Auto throttle arm switch is toggle still 1 rid
David
-
Re: Progamming help with FSBus dll
Quote:
Originally Posted by
RobiD
Autopilot on/off is momentary switch. It only requires 1 rid on the IO board as there are only 2 wires coming from the switch.
FD is a toggle on/off so only 2 wires and 1 rid
NAV is also a momentary switch 1 rid.
Auto throttle arm switch is toggle still 1 rid
David
And that NAV, are you talking about the NAV/GPS switch? flip one side and its NAV and ther side for GPS. So there all 1 rid? next question is do i need to use a on/on switch for any of them and wire the 2 common polls together? if that makes since.....
Trevor
-
Re: Progamming help with FSBus dll
I am getting this error when i try to build it
glareshield.cpp(6) : error C2144: syntax error : 'int' should be preceded by '}'
glareshield.cpp(6) : error C2144: syntax error : 'int' should be preceded by ';'
Here is the Code but i dont see any thing wrong! I compare it to other cpp files and there the same so not sure what this is asking of me to fix when there isnt any thing.
Code:
#include "stdafx.h"
#include "glareshield.h"
// static variables: accessible by all functions in this module
static int ActAlt = 0; // actual altitude
static int Airspeed = 0; // knots
static int AirspeedHold = 0; // 0 off, -1 on
static int AltitudeLock = 0; // 0 off, -1 on
static int Altitude = 0; // feet
static int AltitudeSave = 0; // feet
static int ApproachHold = 0; // 0 off, -1 on
static int APHeading = 0; // 0..359 degrees)
static int AutoThrottleArm = 0; // 0 off, -1 on
static int MachHold = 0; //
static int MachSpeed = 0; // 0 spd, 1 mach
static int MasterAP = 0; // 0 off, 1 on
static int ValFlightDir = 0; // 0: ??
// 1: ??
// 2: ??
// 3: ??
// 4: ??
static int Cmda = 0; // 0 off, -1 on
static int Cmdb = 0; // 0 off, -1 on
static int Cwsa = 0; // 0 off, -1 on
static int Cwsb = 0; // 0 off, -1 on
static int CockpitATArmed = 0; // 0 off, -1 on
static int Course = 0; // 0..359 degrees)
static int Disengage = 0; // 0 off, -1 on
static short Engine1N1 = 0; // units: percent
static short Engine1N2 = 0; // units: percent
static int EngN1 = 0; // 0 off, -1 on
static int FSATArmed = 0; // 0 off, -1 on
static int HeadingLock = 0; // 0 off, -1 on
static int LvlChg = 0; // 0 off, -1 on
static int Mach = 0; // 0.01 units
static int Vertspeed = 0; // feet/min
static int VertspeedHold = 0; // 0 off, -1
static int apalt = 0;
Trevor
-
Re: Progamming help with FSBus dll
This should be line 6
static int ActAlt = 0; // actual altitude
But I don't see anything wrong with it. The syntax is the same as my file.
Perhaps Stefan can spot it.
Oh, did you sort out the problem on the DIO board?
-
Re: Progamming help with FSBus dll
There is no error. Rebuild the complet Project.
-
Re: Progamming help with FSBus dll
Well i took out your code David and put back the original code and i was able to build it. So now im going to compare both codes and try to make it so that it works for me and what im doing. I got this and that to work on it just need to narrow it down and make it all work. And as far as the IO PCB i wasnt able to find the problem so i just left it. Im not using enough switches for it to matter so instead of 64 ill just be able to hook up 32 but thats ok i have less then that in the Autopilot box any ways. Well here are some pics of what i have done on the Autopilot. I put this together last night. http://ttd.g11.us/fsbus/autopilot.html Also i am using F/D, A/T, AP, Nav, App, HDG, IAS, Mach, Alt, BC, Y/D, Nav2. So there for i dont need All of these right?
Code:
MkFsObject(FS_ALTITUDE, "OID", EventHandler, 0x0574, 4, TP_I32, FS_NORMAL);
MkFsObject(FS_AP_MASTER, "OID", EventHandler, 0x07BC, 4, TP_UI32, FS_NORMAL);
MkFsObject(FS_AP_WINGLEVELER, "OID", EventHandler, 0x07C0, 4, TP_UI32, FS_NONE);
MkFsObject(FS_AP_NAV1LOCK, "OID", EventHandler, 0x07C4, 4, TP_UI32, FS_NORMAL);
MkFsObject(FS_AP_HEADINGLOCK, "OID", EventHandler, 0x07C8, 4, TP_UI32, FS_NORMAL);
MkFsObject(FS_AP_HEADING, "OID", EventHandler, 0x07CC, 4, TP_UI32, FS_NORMAL);
MkFsObject(FS_AP_ALTITUDELOCK, "OID", EventHandler, 0x07D0, 4, TP_UI32, FS_NORMAL);
MkFsObject(FS_AP_ALTITUDE, "OID", EventHandler, 0x07D4, 4, TP_UI32, FS_NORMAL);
MkFsObject(FS_AP_ATTITUDEHOLD, "OID", EventHandler, 0x07D8, 4, TP_UI32, FS_NORMAL);
MkFsObject(FS_AP_AIRSPEEDHOLD, "OID", EventHandler, 0x07DC, 4, TP_UI32, FS_NORMAL);
MkFsObject(FS_AP_AIRSPEED, "OID", EventHandler, 0x07E2, 2, TP_UI16, FS_NORMAL);
MkFsObject(FS_AP_MACHHOLD, "OID", EventHandler, 0x07E4, 4, TP_UI32, FS_NORMAL);
MkFsObject(FS_AP_MACH, "OID", EventHandler, 0x07E8, 4, TP_UI32, FS_NORMAL);
MkFsObject(FS_AP_VSHOLD, "OID", EventHandler, 0x07EC, 4, TP_UI32, FS_NORMAL);
MkFsObject(FS_AP_VS, "OID", EventHandler, 0x07F2, 2, TP_I16, FS_NORMAL);
MkFsObject(FS_AP_RPMHOLD, "OID", EventHandler, 0x07F4, 4, TP_UI32, FS_NORMAL);
MkFsObject(FS_AP_RPM, "OID", EventHandler, 0x07FA, 2, TP_UI16, FS_NORMAL);
MkFsObject(FS_AP_GLIDESLOPEHOLD, "OID", EventHandler, 0x07FC, 4, TP_UI32, FS_NORMAL);
MkFsObject(FS_AP_APPROACHHOLD, "OID", EventHandler, 0x0800, 4, TP_UI32, FS_NORMAL);
MkFsObject(FS_AP_BCHOLD, "OID", EventHandler, 0x0804, 4, TP_UI32, FS_NORMAL);
MkFsObject(FS_AUTOTHROTTLEARM, "OID", EventHandler, 0x0810, 4, TP_UI32, FS_NORMAL);
MkFsObject(FS_NAV1OBS, "OID", EventHandler, 0x0C4E, 2, TP_I16, FS_NONE);
MkFsObject(FS_FLIGHTDIRECTOR, "OID", EventHandler, 0x2EE0, 4, TP_I32, FS_NORMAL);
MkFsObject(FS_ENGINE1N2, "OID", EventHandler, 0x0896, 2, TP_I16, FS_NORMAL);
MkFsObject(FS_ENGINE1N1, "OID", EventHandler, 0x0898, 2, TP_I16, FS_NORMAL);
-
Re: Progamming help with FSBus dll
Like this im thinking about taking this out just seems like i dont need it all just for one switch.
Code:
case C_SCMDA:
if ((val==0) && (Disengage == 0)) // button push only
{
//EventHandler(S_SADFSWAP, 0, 0); // sound small switch
Cmda = (Cmda == 0) ? 1 : 0; // toggle
if (Cmda == 0)
FsbusWrite(C_LCMDA, 0);
else
{
FsbusWrite(C_LCMDA, 1);
FsbusWrite(C_LCMDB, 0);
FsbusWrite(C_LCWSA, 0);
FsbusWrite(C_LCWSB, 0);
FsWrite(FS_AP_MASTER, 1);
}
}
break;
case C_SCMDB:
if ((val==0) && (Disengage == 0)) // button push only
{
//EventHandler(S_SADFSWAP, 0, 0); // sound small switch
Cmdb = (Cmdb == 0) ? 1 : 0; // toggle
if (Cmdb == 0)
FsbusWrite(C_LCMDB, 0);
else
{
FsbusWrite(C_LCMDB, 1);
FsbusWrite(C_LCWSA, 0);
FsbusWrite(C_LCWSB, 0);
FsWrite(FS_AP_MASTER, 1);
}
}
break;
case C_SCWSA:
if ((val==0) && (Disengage == 0)) // button push only
{
//EventHandler(S_SADFSWAP, 0, 0); // sound small switch
Cwsa = (Cwsa == 0) ? 1 : 0; // toggle
if (Cwsa == 0)
FsbusWrite(C_LCWSA, 0);
else
{
FsbusWrite(C_LCMDA, 0);
FsbusWrite(C_LCMDB, 0);
FsbusWrite(C_LCWSA, 1);
FsbusWrite(C_LCWSB, 0);
FsWrite(FS_AP_MASTER, 1);
}
}
break;
case C_SCWSB:
if ((val==0) && (Disengage == 0)) // button push only
{
//EventHandler(S_SADFSWAP, 0, 0); // sound small switch
Cwsb = (Cwsb == 0) ? 1 : 0; // toggle
if (Cwsb == 0)
FsbusWrite(C_LCWSB, 0);
else
{
FsbusWrite(C_LCMDA, 0);
FsbusWrite(C_LCMDB, 0);
FsbusWrite(C_LCWSA, 0);
FsbusWrite(C_LCWSB, 1);
FsWrite(FS_AP_MASTER, 1);
}
}
break;
case C_SAPDISENGAGE:
if (val==0) // button push only
{
//EventHandler(S_SADFSWAP, 0, 0); // sound small switch
Disengage = (Disengage == 0) ? 1 : 0; // toggle
if (Disengage == 0)
{
FsbusWrite(C_LAPDISENGAGEL, 0);
FsbusWrite(C_LAPDISENGAGER, 0);
}
else
{
FsbusWrite(C_LAPDISENGAGEL, 1);
FsbusWrite(C_LAPDISENGAGER, 1);
FsbusWrite(C_LCMDA, 0);
FsbusWrite(C_LCMDB, 0);
FsbusWrite(C_LCWSA, 0);
FsbusWrite(C_LCWSB, 0);
FsWrite(FS_AP_MASTER, 0);
}
}
break;
Also when i flip my master autopilot switch on or off i get this error and same thing with when ever i flip my flight dir switch. Dont get me wrong it works fine but also when ever i flip the switch and get that error my PC speaker makes a beep and i dont really wana hear it beep every time.
http://ttd.g11.us/FSPics/FSBUS/ERROR.JPG
-
Re: Progamming help with FSBus dll
Good work on the MCP.
It's a lot of work but worth it when it does what it should.
Let me know what the problem with the code was when you find it.
David
Oh, found the charger for the camera. I've cut out the decks for the altimeter (bezel, motor deck, gear deck etc), and I'm about to cut and engrave the 10000 needle so I'll try to take a couple of pics of that and post them.
-
Re: Progamming help with FSBus dll
Nice well take them soon i wana see your cockpit and everything
-
Re: Progamming help with FSBus dll
Ok, here's some pics.
First one is of the cnc close up cutting the engraving the 10000 needle.
http://www.safeweightloss4kids.com/d...010May0008.jpg
Second is of the whole cnc set up. Of the two computer cases, top is the computer and the bottom houses the driver boards and break out board for the cnc which is parallel driven.
http://www.safeweightloss4kids.com/d...010May0009.jpg
Third is the cut out 10000 needle.
http://www.safeweightloss4kids.com/d...010May0010.jpg
Fourth is the 10000 needle inside the front of the gauge. I have cut all the pieces but have not painted or fitted the lighting. Also, just a black and white printout of the face of the gauge, but it gives you an idea of how the 10000 needle looks.
http://www.safeweightloss4kids.com/d...010May0014.jpg
I'll try to get some photos of the inside of the sim ie: mcp, glideslope indicator etc. oh, not to mention the aircore fuel level, fuel pressure, oil pressure, amps etc gauges.
David
-
Re: Progamming help with FSBus dll
Quote:
Originally Posted by
388TH_A
when i flip my master autopilot switch on or off i get this error and same thing with when ever i flip my flight dir switch. Dont get me wrong it works fine but also when ever i flip the switch and get that error my PC speaker makes a beep and i dont really wana hear it beep every time.
http://ttd.g11.us/FSPics/FSBUS/ERROR.JPG
Do you oguys have any ideas?
-
Re: Progamming help with FSBus dll
Stefan will know, but it seems that it's object 72 in group 2 (just an uneducated guess). I'm not clear on what is meant or referred to with the statement 'Unserviced'
-
Re: Progamming help with FSBus dll
More Photos of the inside of my cockpit with gauges MCP and backlighting.
First one is sitting in the pilots seat looking down. MCP front middle, ADF left, xponder right. You can see that I have modified the cockpit to fit the size for 1 person motion sim. Bottom left is the key ignition switch, above that are the avionics switches, and to the right are the aircore gauges, fuel, fuel pressure etc. Above that are all the standard Cessna gauges except the Altitude indicator which you can see that I'm still building from the pictures in the earlier post below and the RMI/ADF gauge. Flaps lever is on the right of the radio stacks (which I have still to build the display boards for COM1 & 2 and NAV2. I have the right hand side removed in this photo for extra light but when it's on, it's quite immersive. Oh, Throttle, mixture and prop controls are above and to the right of the radio stacks.
http://www.safeweightloss4kids.com/d...0March0321.jpg
Next is a close up of the MCP (excuse the unfinished wood look). The Korry switch legends light up when I turn on the Avionics switch and the amber part obviously turns on when I press the switch or do something that disengages the A/P.
http://www.safeweightloss4kids.com/d...0March0319.jpg
This one is a more distant look at the MCP and the gauges, as you can see, I'm on the glideslope but need to stop taking pictures so I can press the APP button.
http://www.safeweightloss4kids.com/d...0March0317.jpg
Last one: I haven't begun to work on this yet, the only bits working is the Lights switches and the dimming control for the cockpit backlighting. You can see that my cnc skills had improved when I got to cutting and engraving these panels. It also gives you an idea of the quality of the backlighting. (lots of Korries to build to finish this)
http://www.safeweightloss4kids.com/d...7_07100052.jpg
Will post some more when I can.
David
-
Re: Progamming help with FSBus dll
That error i was getting Stefan was able to help me out and was able to fix it. the problem was that i didnt have a case for that obj
Trevor
-
Re: Progamming help with FSBus dll
The one thing about C++ is that when you get error messages, it always something logical you have forgotten. The difficult part is remembering what you have forgotten.
David
-
Re: Progamming help with FSBus dll
Thats for sure. But this one didnt even know i had to create a case for every objbut now i know.
Trevor
-
Re: Progamming help with FSBus dll
OK so i have my Autopilot almost done would either of you be willing to post just your code for the Spd and Mach button? im trying to gut out all the extra code that i dont need for it. also i noticed where there is code for engine 1 and 2 for spd and mach, do i need thoughs? Also what if it was a 4 Engine aircraft would it only work the 1st and 2nd Eng. Just wanting to talk about it and throw ideas back and forth about the SPD and MACH code and also wanted to get mine working. And also i just dont understand the whole spdmach buttons right now. Thanks
Trevor
-
Re: Progamming help with FSBus dll
Do you mean the Speed hold button and the Mach/IAS buttons?
I've gone through the code and picked out the bits and pieces. You will probably know that I've just copied and pasted the bits here so it won't work without being coded properly (I know you know that but it's also for the sake of others that may copy it too).
David
PS sorry for the delay in getting it posted.
Code:
static int AirspeedHold = 0; // 0 off, -1 on
MkFsbusObject(BTP_ROTARY, C_RIAS, "",cbModecontrolpanel, 28, 34);
MkFsbusObject(BTP_D_IN, C_SSPDHLD, "",cbModecontrolpanel, 28, 56);
MkFsbusObject(BTP_D_IN, C_SVSPEEDHLD, "",cbModecontrolpanel, 28, 5);
MkFsbusObject(BTP_D_IN, C_SCHANGEOVER, "",cbModecontrolpanel, 28, 58);
MkFsbusObject(BTP_D_OUT, C_LAIRSPEEDHOLD, "",cbModecontrolpanel, 28, 9);
MkFsObject(FS_AP_AIRSPEEDHOLD, "",cbModecontrolpanel, 0x07DC, 4, TP_UI32, FS_NORMAL);
MkFsObject(FS_AP_AIRSPEED, "",cbModecontrolpanel, 0x07E2, 2, TP_UI16, FS_NORMAL);
MkFsObject(FS_AP_MACHHOLD, "",cbModecontrolpanel, 0x07E4, 4, TP_UI32, FS_NORMAL);
MkFsObject(FS_AP_MACH, "",cbModecontrolpanel, 0x07E8, 4, TP_UI32, FS_NORMAL);
case C_RIAS:
//EventHandler(S_RHEADING, 0, 0); // sound rotary
if (MachSpeed == 0)
{
Airspeed -= val;
if (Airspeed < 100) // minimum 100 knts
Airspeed = 100;
if (Airspeed > 340) // maximum 340 knts
Airspeed = 340;
FsWrite(FS_AP_AIRSPEED, Airspeed); // to FS
FsbusWrite(C_DIAS, Airspeed);
}
else
{
Mach -= val;
if (Mach > 70)
Mach = 70;
if (Mach < 10)
Mach = 10;
FsWrite(FS_AP_MACH, Mach * 65536 / 100);
FsbusWrite(C_DIAS, Mach);
}
break;
case C_SAUTOTHROTTLEARM:
CockpitATArmed = (val == 0) ? 1 : 0;
if (bSynchronised) // pass only when in sync
FsWrite(FS_AUTOTHROTTLEARM, (val == 0) ? 1 : 0);
FsbusWrite(C_LATARMED, CockpitATArmed);
printf("C_SAUTOTHROTTLEARM event, CockpitATarmed %d\n", CockpitATArmed);
if (CockpitATArmed == 0)
{
AirspeedHold = 0;
MachHold = 0;
}
break;
case C_SN1:
if ((val == 0) & (CockpitATArmed == 1)) // button push only
{ // AT on
//EventHandler(S_SADFSWAP, 0, 0); // sound small switch
EngN1 = (EngN1 == 0) ? 1 : 0; // toggle
if (MachSpeed == 0)
FsWrite(FS_AP_AIRSPEEDHOLD, EngN1); // to FS
else
FsWrite(FS_AP_MACHHOLD, EngN1);
if (EngN1 == 1)
AirspeedHold = 0;
FsbusWrite(C_LN1, EngN1);
FsbusWrite(C_LAIRSPEEDHOLD, AirspeedHold);
FsWrite(FS_ENGINE1N1, EngN1);
FsWrite(FS_ENGINE1N2, EngN1);
}
break;
case C_SSPDHLD:
if ( (val == 0) && (CockpitATArmed == 1) ) // button push only
{
//EventHandler(S_SADFSWAP, 0, 0); // sound small switch
AirspeedHold = (AirspeedHold == 0) ? 1 : 0; // toggle
FsbusWrite(C_LAIRSPEEDHOLD, AirspeedHold);
if (AirspeedHold == 1)
{
EngN1 = 0;
FsbusWrite(C_LN1, EngN1);
if (MachSpeed == 0)
FsWrite(FS_AP_AIRSPEEDHOLD, 1);
else
FsWrite(FS_AP_MACHHOLD, 1);
}
else
{
FsWrite(FS_AP_AIRSPEEDHOLD, 0);
FsWrite(FS_AP_MACHHOLD, 0);
}
//FsWrite(FS_ENGINE1N1, EngN1);
//FsWrite(FS_ENGINE1N2, EngN1);
}
break;
case C_SCHANGEOVER:
//EventHandler(S_SADFSWAP, 0, 0); // sound small switch
if (val == 0) // button push only
{
MachSpeed = (MachSpeed == 0) ? 1 : 0; // toggle
if (MachSpeed == 1) // Mach indication
{
DisplayOptions(C_DIAS, 3, 0, TRUE, 3);
FsbusWrite(C_DIAS, Mach);
FsWrite(FS_AP_MACHHOLD, 1);
}
else // IAS indication
{
DisplayOptions(C_DIAS, 4, 0, FALSE, 0); // Fsbus bug (p5=0)
FsbusWrite(C_DIAS, Airspeed);
FsWrite (FS_AP_AIRSPEEDHOLD, 1);
}
}
break;
case FS_AP_MACHHOLD:
if (AirspeedHold == 1)
{
FsbusWrite(C_LAIRSPEEDHOLD, 1);
FsbusWrite(C_LN1, 0);
}
else if (EngN1 == 1)
{
FsbusWrite(C_LAIRSPEEDHOLD, 0);
FsbusWrite(C_LN1, 1);
}
else
{
FsbusWrite(C_LAIRSPEEDHOLD, 0);
FsbusWrite(C_LN1, 0);
}
break;
case FS_AP_AIRSPEED:
Airspeed = val;
if (MachSpeed == 0) // display in IAS mode
FsbusWrite(C_DIAS, Airspeed); // new speed
break;
case FS_AP_MACH:
Mach = (val * 100 + 50) / 65536 ; // round to 0.01
// printf("FS_AP_MACH event, Mach=%d.%02d\n", Mach / 100, Mach % 100);
if (MachSpeed == 1) // display in Mach mode
FsbusWrite(C_DIAS, Mach); // new Mach
break;
-
Re: Progamming help with FSBus dll
Hi!
I also made modules for fsbus dll 2009, but the stepper motor module works only from the "Admin". What is the problem? How to solve it?
Sorry for my English =)
-
Re: Progamming help with FSBus dll
Rusdex,
Can you show us the code your using to control the stepper board (C++ code).
Thanks
David
-
Re: Progamming help with FSBus dll
Quote:
Originally Posted by
RobiD
Rusdex,
Can you show us the code your using to control the stepper board (C++ code).
Thanks
David
1)
MkFsObject(F_VS, "", cbGauges, 0x02C8,4, TP_I32, FS_NORMAL);
MkFsbusObject (BTP_V_OUT, C_STEP1,"",cbGauges, 5, 80);
//
int ifvs = 0;
case F_VS :
ifvs = (val/19 + 400)/2;
FsbusWrite(C_STEP1, ifvs);
break;
and
2)
case F_VS :
FsbusWriteFmtVar(5, 80, (val/19 + 400)/2);
break;
-
Re: Progamming help with FSBus dll
Stepper works only in the format BTP_A_OUT. I think that the problem in "dll". Firmware of the stepper module does not understand the additional 2 bytes, which sends the C++ router (total lenght - 5).
For example - value "316"; CID - "11" : "dll" send AD 50 1E 02 CC, but admin send AC 50 1E 42
:sad:
Also do not work DISPLAY_BLANK, DISPLAY_BAR parameters for the display controllers
:cry:
-
Re: Progamming help with FSBus dll
There are still some bugs that i need to work out but as far as the C++ i think that is done for now thanks David for your help. My C++ was and wasnt the same as your but was able to take mine out and put yours in and then add some extra in it and it works fine for me thanks again for your help.
Trevor
-
Re: Progamming help with FSBus dll
Hi Trevor,
You are welcome. It's all made to go around.
Do you have any thoughts on Rusdex's problem with the stepper. I haven't even began to look at the coding yet, but when I do, I'm going to need lots of input.
Even Dirk said he would take a look at the code once I've got something done.
David
-
Re: Progamming help with FSBus dll
I havent messed with the Stepper at all so i dont know Sry
-
Re: Progamming help with FSBus dll
Quote:
Originally Posted by
sgaert
My Stepper work only in the AdminTool in my C code i nevver had a movement.
Stefan
I have the same problem. You solved it?
-
Re: Progamming help with FSBus dll
Rusdex,
How did Stefan solve the problem??
I am not far off of starting the code for my stepper board and if you've solved it, I'd love to know how.
David
-
Re: Progamming help with FSBus dll
Rusdex,
Just stumbled across your videos on Youtube and it does appear as though you have got the stepper card working.
Are you willing to share the code with us so we can see how it is coded.
Thanks
David
-
Re: Progamming help with FSBus dll
Quote:
Originally Posted by
RobiD
How did Stefan solve the problem??
I never solved the problem, i did test the stepper board a year ago without luck.
Maybe you write a neu Output Funktion they send with the right format.
@rusdex, do you report the results of your search to Dirk?
Stefan
-
Re: Progamming help with FSBus dll
I've sent Dirk an email with some questions and I have inlcuded your (Rusdex's) code for him to have a look at.
I'll let you know what the outcome is. My hope is that Dirk can put us on the right track and we can all work on it together and come up with a solution that works.
David
-
Re: Progamming help with FSBus dll
Rusdex,
Dirk has sent me a reply. He is on holidays at the moment but when he gets home, he has promised to look into the code to sort it out.
He did give me this bit of info that may be of help until then:
please try to send the position commands with
BOOL FsbusWriteFmtVar(int cid, int rid, int v)
> Don't use the other FsbusWrite.. commands.
The BTP_A_OUT is the right object for stepper
Hope that helps a little. Please keep us informed of how you are going with it and as soon as I hear from Dirk, I will write it up on this thread.
Regards
David
-
Re: Progamming help with FSBus dll
Just to keep everyone updated on the progress of the Stepper issue.
Heard from Dirk last night and he has the problem on the desk in front of him actively working on the solution.
When he has sorted it, he will email me some demo code so we can all adapt it and test it.
Thanks Dirk, greatly appreciated.
David
-
Re: Progamming help with FSBus dll
Dont' know what's going on in this thread, I've left a post as #432 regarding making contact again with Dirk and I keep getting notification of a post by shearder regarding his MCP code in this thread and when I click the link in my email to view the post, mine are missing and shearder's first post is #432 and now #433.
With a bit if fiddling around with logging out then in and coming to this thread another way, my post is now visible #432 and shearder's are not.
Very curious.
David
-
Re: Progamming help with FSBus dll
I am wondering - am i having a problem with FSBUS due to FSX? Offsets seem to be the same...
-
Re: Progamming help with FSBus dll
i use the FSX. The most Offsets are the same.
Look to Interogate to find the difference.
-
Re: Progamming help with FSBus dll
Hey Stefan
Yeah i installed FS9 to test and i get the same problems. I also notice N1 hold also sets Speed hold - which still kills engine. I was going to start building my structure today but i decided against it. Think i should take up knitting LOL cos i don't have tghe time i used to have for building and the programming is going to kill me...
-
Re: Progamming help with FSBus dll
HAHA the Speed Hold kills the engin, i know that from a freeware Fokker 50. I think that is an error in a gauge file of the Aircraft. I never fixed that.
-
Re: Progamming help with FSBus dll
Shearder,
Looks like we are all posting in the same thread now.
I changed to FSX without any problems so I agree with Stefan.
I did have an engine killing problem when I was setting up my MCP, whenever I pressed the Autothrottle speed set button.
I will have to go through this thread to find the problem as Stefan helped me with that one too.
David
-
Re: Progamming help with FSBus dll
Update on the stepper board and code.
Dirk emailed my some test code and if needed, a replacement fsbus.dll file to use and test with.
I will spend the next couple of weeks building the board and testing the code sample without the new dll file (as Dirk requested) then if that fails, with the new dll
Let me know if anyone else is interested in doing some of this testing.
David
-
Re: Progamming help with FSBus dll
Hello David,
can you mail me the new DLL?
Than i can also do some testīs with my stepper board.
Stefan