Jump to content
The simFlight Network Forums

Recommended Posts

Posted

Hi

I'm working with MSFS 2004 and I'like to know something more about

thr following offsets:

0578 = Pitch angle in degrees

057C = Bank angle in degrees

Can I use them to indicate the attitude of the aircraft with respect

to an Earth - fixed - inertial reference frame?

Thank you for your time

Marco Vercellino

Posted

0578 = Pitch angle in degrees

057C = Bank angle in degrees

Can I use them to indicate the attitude of the aircraft with respect

to an Earth - fixed - inertial reference frame?

Well, apart from the documented conversion you need to apply to get them into degrees, yes, I think so.

I don't know exactly what you really mean by "Earth - fixed - inertial reference frame", but I suspect you mean the attitude in FS's small and oddly-shaped universe (its Earth isn't a sphere nor a plane, remember, more a toroid if I remember rightly, with no poles).

Anyway, in FS, the exact position and attitude of the aircraft at any time is given by the 6 values LLAPBH (Lat, Long, alt, Pitch, Bank, Heading) in the offsets 0560-0580.

Please try using FSInterrogate, provided with the FSUIPC SDK. You can see these things actually changing in real time and therefore come to understand them quite quickly and thoroughly.

Regards,

Pete

Posted

Giday, I am new to this forum. I saw this topic and I think it may be what I have been looking for.

Pete, is there a snippet of code I can use in Visual Basic 2005 Express?

I need to get pitch and bank data out of FSUIPC to control some servo's

From what I can see with FSlook it looks simple :-) but I don't know where to start.

Pitch ID 78

Bank ID 80

In degrees is fine I can work with that.

Vertical_Velocity ID 556 would be nice to mix in too for heave control.

Pete, can you help me?

UIPC_SDK VB.NET Shell Rev 2 produced 48 errors in conversion.

I am lost!

Posted

is there a snippet of code I can use in Visual Basic 2005 Express?

Is that different from Visual Basic? There's a section of the SDK which includes VB. Isn't that any use? I cannot help otherwise, I don't use it, but someone else may chip in here.

I need to get pitch and bank data out of FSUIPC to control some servo's

From what I can see with FSlook it looks simple

FSLook operates like a gauge, it isn't an example at all. Use FSInterrogate. That is where you need to go to learn how the FSUIPC interface and the FS values behave.

but I don't know where to start.

Start with the FSUIPC SDK. All the information you need, if you are a programmer, is in there. If you don't yet program then it may not be a good place to start learning I'm afraid.

can you help me?

UIPC_SDK VB.NET Shell Rev 2 produced 48 errors in conversion.

I am lost!

Perhaps your VB Express is more related to VB than to VB.NET? Did you check that?

I really know nothing about these many new languages, all apparently incompatible with each other, that Microsoft keeps churning out. Why don't they at least attempt to keep some sort of compatibility? Maybe there's some Help from Microsoft for those changing from one version of Basic to the next, somewhere? Sorry, I am no use for this stuff at all.

Regards,

Pete

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
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.