Offsets ?

A forum for open discussions. Feel free to discuss any and all elements of Flightdeck Building. NB: This section is for individual builders to openly discuss issues that may or may not pertain to FDS. Organizations/Political Groups or Commercial Entities Will require approval prior to posting. Prior Approval From FDS required prior to posting items for sale. No Exceptions.

Moderators: Curtis, Jetcos

Post Reply
wwwayward
Posts: 20
Joined: Wed Feb 08, 2006 10:02 am
Location: Toronto,ON Canada

Offsets ?

Post by wwwayward »

Hello !
can anyone give me a site that explains what offsets are ?
i'm pretty new to cockpit building, and the interfacing language.

Cheers
Steff

wwwayward
Posts: 20
Joined: Wed Feb 08, 2006 10:02 am
Location: Toronto,ON Canada

Post by wwwayward »

or of course an explanation might suffice :D

Steff

chrisw
Posts: 244
Joined: Wed Jul 14, 2004 12:32 pm
Location: England, United Kingdom
Contact:

Post by chrisw »

In Sim building, offsets usually refer to the FSUIPC offsets. FSUIPC is a tool written by Peter Dowson to be a way of interfacing other applications with Flight Simulator and to be able to read or set different flight simulator settings from any computer on a network (in conjunction with WideFS).

An offset has an address and a length and is then often broken down into individual 'bits' - ie. the ones and zeros of binary to represent off and on for things like lights.

Some examples: (note that the address is written in hexadecimal form)

Code: Select all

0BDC (address), 4 (length in bytes) Flaps control, 0=up, 16383=full. The “notches” for different aircraft are spaced equally across this range: calculate the increment by 16383/(number of positions-1), ignoring fractions. See also offset 3BFA below.

0EF0 (address), 2 (length in bytes) Surface wind speed, knots.

0C4A (address), 1 (length in bytes) NAV1 Back Course flags:
            0          BC available

            1          Localiser tuned in

            2          On Back Course (?)

            7          Station active (even if no BC)

where 0, 1, 2 and 7 represent the individual 'bits' in the byte. A byte is made up of 8 bits which are numbered, from right to left, 0 1 2 3 4 5 6 7.
The Peter Dowson homepage is at: http://www.schiratti.com/dowson.html and the full list of FSUIPC offsets is at http://www.projectmagenta.com/resources ... fsets.html

Regards
Chris
ps. I know the above isn't code, but it highlights the offsets!

wwwayward
Posts: 20
Joined: Wed Feb 08, 2006 10:02 am
Location: Toronto,ON Canada

Post by wwwayward »

Hi Chris and thank you for the explanation.
i understood the first part, no prob.
the second part i need some more help, i would really like to learn something new today :)
could you briefly explain the components, i am familiar with hex as i learned it with MIDI when i worked in the music industry. so i'm not intimidated by it.
i just need a little futher explanation.

Cheers!
Steff

chrisw
Posts: 244
Joined: Wed Jul 14, 2004 12:32 pm
Location: England, United Kingdom
Contact:

Post by chrisw »

Which bit in particular don't you understand? There is also some documentation with the FSUIPC module from Pete Dowson so that might also be a good place to start.

Chris

wwwayward
Posts: 20
Joined: Wed Feb 08, 2006 10:02 am
Location: Toronto,ON Canada

Post by wwwayward »

OK i'll read that and pickyour brain for anything to bridge the gaps

thanks Chris

Steff

mauriceb
Posts: 1051
Joined: Mon Aug 22, 2005 3:14 pm
Location: Gravenhurst, Ontario - Canada

Re: Offsets ?

Post by mauriceb »

wwwayward wrote:Hello !
can anyone give me a site that explains what offsets are ?
i'm pretty new to flightdeck building, and the interfacing language.

Cheers
Steff
Steff,
You may want to read one of the earlier threads on this subject. Lots of good info there:
http://www.flightdecksolutions.com/foru ... et+maurice

Maurice

wwwayward
Posts: 20
Joined: Wed Feb 08, 2006 10:02 am
Location: Toronto,ON Canada

Post by wwwayward »

Thanks Maurice et al.

this is exactly what i was looking for !
it's starts making sense if you can use it.

Thanx for the redirect !

Cheers
Steff

P.S. i reserve the right to ask further questions on this when i hit the proverbial wall. :lol:

Post Reply