Re: Progamming help with FSBus dll
Just completed my first ILS approach into Brisbane with my MCP and it's associated code, all went well with MCP controlling glideslope decent and runway alignment.
Just have to work on my skill from 50feet down to the runway and stopping.
My next task is to work on the stepper motor board so I can finally finish my Attitude indicator (it's complete, just haven't built the stepper board) and get the gyro compass working.
I still have to build the Altitude indicator based on Mike's designs.
Thanks for all your help Stefan, I'll sure it's not over yet though.
David
Re: Progamming help with FSBus dll
Hi Stefan,
Don't know if you can answer this one for me, but maybe someone else can if you are unable.
I am building another Servo Board and for some reason I am having trouble getting 22pf ceramic capacitors.
I have lots of 27pf caps.
Can I use these???
Thanks
David
Re: Progamming help with FSBus dll
Re: Progamming help with FSBus dll
Thanks Stefan,
I thought they would be, but I just wanted to be sure before I solder them in.
Regards
David
Oh, by the way, I have converted the bank portion of my attitude indicator to a servo as you suggested some time ago instead of the stepper I had put in there.
Re: Progamming help with FSBus dll
Stefan,
I am compiling after adding the code for Pitch and Bank, and I am getting warning message although it is still compiling.
Do you know where the error is? What code do you want to see?
Thanks
David
c:\documents and settings\david\my documents\visual studio 2008\projects\davids flight sim\davids flight sim\gauges.cpp(141) : warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data
c:\documents and settings\david\my documents\visual studio 2008\projects\davids flight sim\davids flight sim\gauges.cpp(141) : warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data
c:\documents and settings\david\my documents\visual studio 2008\projects\davids flight sim\davids flight sim\gauges.cpp(141) : warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data
c:\documents and settings\david\my documents\visual studio 2008\projects\davids flight sim\davids flight sim\gauges.cpp(141) : warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data
c:\documents and settings\david\my documents\visual studio 2008\projects\davids flight sim\davids flight sim\gauges.cpp(141) : warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data
c:\documents and settings\david\my documents\visual studio 2008\projects\davids flight sim\davids flight sim\gauges.cpp(141) : warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data
c:\documents and settings\david\my documents\visual studio 2008\projects\davids flight sim\davids flight sim\gauges.cpp(141) : warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data
Linking...
Embedding manifest...
Re: Progamming help with FSBus dll
Please show the line 141 in the gauges.cpp file.
Re: Progamming help with FSBus dll
Hi Stefan,
Line 141 is the calibrate fields, but I have included the code for this bit.
ase FS_ATTITUDEINDICATORPITCH:
{
static CALTAB ATTITUDEINDICATORPITCHIndicator [] = {
{-85,72},{-13.8,94},{-10.4,101},{-6.7,105},{-3.6,107},{0,111},{3.9,119},{6.5,124},{10.1,129},{14,132},{80,147}
};
val = Calibrate (val,ATTITUDEINDICATORPITCHIndicator,11);
FsbusWrite (C_ATTITUDEINDICATORPITCH, val);
}
break;
Actually, is the fact I'm using numbers like -10.4
Do I have to use rounded numbers?
Thanks
David
Re: Progamming help with FSBus dll
Yes try to round the Values.
Short tip:
FsbusWrite (C_ATTITUDEINDICATORPITCH, Calibrate (val,ATTITUDEINDICATORPITCHIndicator,11));
Stefan
Re: Progamming help with FSBus dll
hey David would you be willing to Post some pics of your Boards and your MCP? Im wanting to make one as well in about 2-3 weeks
Trevor
Re: Progamming help with FSBus dll
Hi Trevor,
Happy to, as soon as my wife can find the charger for our camera. (you know, it's put somewhere safe, never to be found again:lol: )
I have only just put all the gauges and MCP back into the cockpit yesterday, so it would have been easier to have taken the photos then.
David