• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

FS2004 C vor gauge program help

Messages
7
Country
portugal
Hello.

Iam from Portugal and i have a discipline in the university called telecomunications in aeronautics, in this discipline we use the fs2004 to show us how the diferent instruments of the panel work. But we never did a programing. Now the engeneier wants, us make a VOR in C linguage, and i allready do something but i dont know if this is working or if have any errors.
Anyone please could see and tell me if it works or not. If not wat i have to change add/delete.

Tanks a lot

links:

http://rapidshare.com/files/399370935/VOR.rar.html

or

http://www.mediafire.com/?1gzjymvqfov
 
I didn't try to compile the gauge, but several things stand out...

newvor.rc file has an #include for a non-existent file:

#include "atitude.h"

You are calling for a callback, but no where have it coded:

Code:
// movimento da imagem interior
MAKE_NEEDLE
	{
		new_needle,
		vert_needle,
		bussola_list,
		NULL,
		erase | transparent ,
		 0,
           36, 222,
		 20, 20,
		AIRSPEED,		//Dummy for anti-clockwise movement
		new_needle_cb,
		NULL,
		0

	}

	// Lista da imagem interior, só uma imagem
	PELEMENT_HEADER		needle_list[] =
{
	&new_needle.header,
	NULL
};

You will need to write the new_needle_cb before it could possibly work... ;)

Also, your "Gyro.bmp" is not going to work well for a VOR... :eek:
 
First of all, tanks for the answers. I am a newbi in this because we dont program in this discipline, just learn how instuments work, and now he want us make a vor. Were i go to have one simple, like a sample or can you help me do it one?
 
Your zip file has no code at all!

There's no .c, .rc, or .h files for the project...

Also, I see you are still using gyro.bmp as the background. This won't work. Use one of Dai's VOR background images.
 
Your zip file has no code at all!

There's no .c, .rc, or .h files for the project...

Also, I see you are still using gyro.bmp as the background. This won't work. Use one of Dai's VOR background images.

I send the project of microsoft visual c ++, but i send the files a part. I don t understand why gyro.bpm doesn t work, can you explain to mee? and now the project dont have any errors but i dont know if it works

link:

http://rapidshare.com/files/400766661/VOR.rar.html
 
Okay. If you wanted to build an "Attitude" gauge, what you have might be a good beginning...

...but for a VOR it is hopeless.

Please, look in Dai's tutorial for excellent examples of VOR code:

..\sd2gau29\Source Codes\Garmin VORs

This is what you want to end up with!

gi106apic.jpg
 
Okay. If you wanted to build an "Attitude" gauge, what you have might be a good beginning...

...but for a VOR it is hopeless.

Please, look in Dai's tutorial for excellent examples of VOR code:

..\sd2gau29\Source Codes\Garmin VORs

This is what you want to end up with!

gi106apic.jpg

hy i know, but the teacher only wants a simple vor, with a needle and a background image. the rest is like an extra
 
To save time, I've put together a "Simple VOR" complete with the images you will need for your project.

It is a "Solution" file than contains the "skeleton" of all the required C files, but are not "animated":

VOR_Simple.c // main gauge
VOR_Simple.h // header file
VOR_Simple.rc // resource file
VOR_SimpleG.c // this has the actual "gauge code"

http://n4gix.home.comcast.net/~n4gix/VOR Simple.zip
 
To save time, I've put together a "Simple VOR" complete with the images you will need for your project.

It is a "Solution" file than contains the "skeleton" of all the required C files, but are not "animated":

VOR_Simple.c // main gauge
VOR_Simple.h // header file
VOR_Simple.rc // resource file
VOR_SimpleG.c // this has the actual "gauge code"

http://n4gix.home.comcast.net/~n4gix/VOR Simple.zip

tanks for the help, i think i do something, but i have some errors, can you pleease see wats going on? i spend all my day doing this and i have to deliver tomorrow.
Tanks very much for the help

link:

http://rapidshare.com/files/401424626/VOR_.rar.html
 
Last edited:
hy

I am going to deliver this, at 6 pm. If someone could see why i have the 3 final errors i am apriciated

I am waiting tanks a lot
 
I know you've worked very, very hard on this, but quite honestly I think your professor has assigned a project that is just too difficult for any novice C programmer to accomplish!

I've spent the past hour attempting to clear the 102 errors (never mind the warnings!), and have simply come to the end of my rope...

I am sorry I cannot be of any further help on this homework assignment... :o
 
Back
Top