Sign in to follow this  
Guest coenc

External cockpit gauges

Recommended Posts

Hi all,I've been spreading my thoughts about programming external cockpit gauges. I've come up with a algoritm to display the hand(s) of a gauge. Using any background picture as the face of the dial, I think we don't need OpenGL anymore. Just a BMP or a JPEG will do just fine.This configurable gauge should be able to produce speedometer, altimeter, engineRPM, etc, etc... Details can be found on http://home.planet.nl/~coppo020/cockpit/de...loguegauges.htmWhat do you think, do you have any suggestions?

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

That is very interesting and somewhat exactly what I was looking for. This could work for my engine gauges so that I can take the bgrnd from Espens panel. All I need is a white needle or a white bar (up/down).But this won't work for virtual horizons etc right ?

Share this post


Link to post
Share on other sites

>That is very interesting and somewhat exactly what I was>looking for. This could work for my engine gauges so that I>can take the bgrnd from Espens panel. All I need is a white>needle or a white bar (up/down).>>But this won't work for virtual horizons etc right ?You can have even PINK needles if you want, any comments are welcome.Anything that has a round clock-like interface can be made with this gauge. I could even spread my thoughts about a bar shape.Engine gauges are perfect for that matter.BTW: What is bgrnd?

Share this post


Link to post
Share on other sites

lol*dutch*wat is bgrnd ? wat is postbode zonder o ? (facteur) .. maar zo zeggen ze 't niet in NL eh ;p*/dutch*bgrnd = background but only a few letters .. like thnx and such .. handy to type.ok then you could do clock-type .. possibly bar-type .. how about adding numbers shown on the gauges ?

Share this post


Link to post
Share on other sites

you fckng blgns!!!! You mean bckgrnd!In my case, the numbers are on the bmp or jpg, just like in the attachment here.But I guess we can make it without a background picture, so that you can use your own bckgrnd. You'll only see a (white) hand......I guess you need multiple different gauges on 1 picture?

Share this post


Link to post
Share on other sites

what I meant with numbers was not the ones going around in the cirkle. The ones I mean are like digital numbers right under the center point of the needle which show the value in digits which the needle points at in analogue way.

Share this post


Link to post
Share on other sites

It just so happens that I'm not blgn, so I guess I should be able to pull this off. Not a word of code has been written, though.Neat idea about the digital numbers!!! That's surely going in.I WAS thinking about a single gauge that could be executed multiple times at the same time. You'd probably prefer one big panel with multiple gauges?

Share this post


Link to post
Share on other sites

Think that's easy yeah .. unless each gauge has an ini file which it will read to determin where it should position itself on a display (top & left values) ......

Share this post


Link to post
Share on other sites

remember screen positions in a .ini file. That's a Windows standard.Check!The ini-file (or command line parameters) will probably look like this[.ini]background="ADF.jpg"screenposition=640x480startdegrees=360stopdegrees=360showdigitalvalues=Y/N

Share this post


Link to post
Share on other sites

now make it possible to chose font for the digitvalues ? and size ?and the final question .. you think it's possible to have a rose which rotates as well ? so say like a compas ?then you could do an ADF gauge as well ..and more than 1 needle ?

Share this post


Link to post
Share on other sites

A moving rose would not be possible, that would require OpenGL.This idea is about a moving needle(s) centering on a background picture.I've just now succesfully connected to FDSConnect with VB, reading all parameter values from FS2004. (FDSConnect is freeware version of FSUIPC)

Share this post


Link to post
Share on other sites

we all know fdsconnect ;)none the less i don't use it. simply because the project seams to be dead and if you get updates or answers to questions they are sooooo slow! I recently had an answer to a question I asked a few months back which obviously was no longer an issue cuz I had moved to fsuipc.I have no idea how gauges work in fs .. but I don't think they use OpenGL, do they ? I wonder if it wouldn't be possible to do something similar outside fs in an exe ..

Share this post


Link to post
Share on other sites

Philippe:"what I meant with numbers was not the ones going around in the circle. The ones I mean are like digital numbers right under the center point of the needle which show the value in digits which the needle points at in analogue way."Like this, you mean, Philippe?http://forums.avsim.net/user_files/86515.jpgThe "bugs" move round the outside of the gauge as an analogue readout, while the digital value is displayed in the center.Richard

Share this post


Link to post
Share on other sites

Would you be helped by a activeX component that shows a needle on a configurable background jpg?And how do you connect to FS?

Share this post


Link to post
Share on other sites

That's basically what I use already.The connection to FS is done via FSUIPC and (If running on an external PC) WideFS.Richard

Share this post


Link to post
Share on other sites

Having it as an ActiveX would be nice though - my previous panels have coded each needle seperately.Richard

Share this post


Link to post
Share on other sites

That looks some or what similar indeed.Just check this picture .. http://www.airliners.net/open.file/492758/MMost of these got such a digital number. Though they do have a real neadle.The trick with your gauges Richard, .. can you change much to them ? Like the virtual horizon ? Can you re-shape the thing ? Or the change the w-shape into a ^-shape ? etc etc ..

Share this post


Link to post
Share on other sites

The AH is a commercial instrument, so I'm limited in what it can look like. There are three or four choices of reference marker, one of which is a thick inverted triangle.Richard

Share this post


Link to post
Share on other sites

For those of you that are interested in programming analogue gauges.See the results of what I've been spending my time on...the included OCX needs to be registered before using the exe(Start>Run> regsvr32.exe AnalogueGauge.ocx)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this