Welcome to Cockpitbuilders.com. Please login or sign up.

March 28, 2024, 03:02:09 AM

Login with username, password and session length

PROUDLY ENDORSING


Fly Elise-ng
127 Guests, 1 User
Members
Stats
  • Total Posts: 59,639
  • Total Topics: 7,853
  • Online today: 130
  • Online ever: 582
  • (January 22, 2020, 08:44:01 AM)
Users Online
Users: 1
Guests: 127
Total: 128

COUNTDOWN TO WF2022


WORLDFLIGHT TEAM USA

Will Depart in...

Recent

Welcome

FSUIPC For Dummies

Started by Trevor Hale, August 31, 2009, 05:52:01 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Trevor Hale

Guys,

I spent some time on the weekend with Peter Dawson's Manual, and a lot of trial and error.

I know most of you at one time went looking for this information, and sometimes are afraid of the direction the conversation can go.

Well here is the start of a Tutorial Thread that should help us all out.

Please if you are an expert in FSUIPC and Offsets, this thread is not needed for you, this is just so that maybe I can help some people not go through what I went through this weekend again.


I noticed that in PM systems there are so far two types of offsets being used. I am only 32 Buttons into this, so there may be more added here soon.

ie. Engine Start switch..

Offset X0000 Byte = 0 //--- Engine GND
Offset X0000 Byte = 1 //--- Engine off
Offset X0000 Byte = 2 //--- Engine CONT
Offset X0000 Byte = 3 //--- Engine AIR/FLT

Using Leo Bodnar's cards, or any joystick button input we program this like below.

FSUIPC Buttons/Switches menu
- Press the button
- select function Offset SET Byte
- Type in the 4 digit offset number
- Parim ON = X //-- X = 0,1,2,3 the function when the button is depressed
- select Function Offset SET Byte
- Type in the 4 digit offset number
- Parim OFF = X //-- X = 0,1,2,3 the function when the button is released

For instance on my Rotary switch I have the following when you turn it to the left for start.

- select function Offset SET Byte
- Parim ON = 0
- select Function Offset SET Byte
- Parim OFF = 1

Turnig to the right I have.
- select function Offset SET Byte
- Parim ON = 2
- select Function Offset SET Byte
- Parim OFF = 1

Very easy eh?

Ok well here is where I got confused..

the 737 has 4 landing light switches. The Light offset has several Bits assigned to it, for instance bit .4 is the far left switch, .3 is another switch .2 is another and so on.

This works similar to above except we are not assigning a value to the bit. we are only setting the bit or clearing it.

FSUIPC Buttons/Switches menu
- Press the button
- select function Offset SET bits
- Type in the 4 digit offset number
- Parim ON = the Bit number in HEXADECIMAL See Chart Below.

- select function Offset Clr bits
- Type in the 4 digit offset number
- Parim OFF = the Bit number in HEXADECIMAL See Chart Below.

if you set the Parim OFF to 00, it clears all bits, therefore turning one switch off, appears to turn all switches off belonging to that offset number.

Here is the best way to understand the bits/hex.

Binary Counts Like this. 0 1 2 4 8 16 32 64 128

Hex counts to 16 like this. 0 1 2 3 4 5 6 7 8 9 A B C D E F

Each Hex Number is made up of 4 Binary Numbers. The Below shows the Hex Value for Bit .4

Bit Numbers: 7 6 5 4 | 3 2 1 0
Binary 2 groups of 4: 8 4 2 1 | 8 4 2 1
HEX Value 1 0

for Bit .5 it would be

Bit Numbers: 7 6 5 4 | 3 2 1 0
Binary 2 groups of 4: 8 4 2 1 | 8 4 2 1
HEX Value 2 0

for Bit .0 it would be

Bit Numbers: 7 6 5 4 | 3 2 1 0
Binary 2 groups of 4: 8 4 2 1 | 8 4 2 1
HEX Value 0 1


I will add to this further, as I progress, but it really did take me an eternity to figure this information out.

I hope I haven't confused anyone, but please feel free to ask questions if you have any, and I will try to answer.

It did take considerable time to wrap my head around. For me what will be the next challenge is exceeding the bit .7 I would gather I will be adding another 2 hex digits to the string for bit .8, through .15. None the less, I also believe exceeding the 2 hex digits will be called an offset word or dword, I will experiment and report back here when I run into this.

I would like to keep this in the largest part laymen terms, I know people like Peter would think this thread is a waste of time, as he already has this information documented, but I personally had to understand it like I have it written here, maybe it's because I am not a university graduate.

Trevor Hale

Owner
http://www.cockpitbuilders.com

Director of Operations
Worldflight Team USA
http://www.worldflightusa.com

VATSIM:

ivar hestnes

Thank you very much for posting this tutorial Trevor. It is one of the hardest topics to understand regarding simulator-building, and this information is very helpful to all of us :)

warvet

"Want Some,Get Some, Bad Enough Take Some!:D "

Trevor Hale

#3
LOL @ Tim..  I know the feeling :)
Trevor Hale

Owner
http://www.cockpitbuilders.com

Director of Operations
Worldflight Team USA
http://www.worldflightusa.com

VATSIM:

klm767

Trevor,

Do you know if you need to input the buttons in FSUIPC before you cvan use them in WIDEFS. Ik have a bit of a problem with the buttonscreen in WIDEFS and WIN7

Trevor Hale

hmmm.. what are you actually trying to do..  are you going to transfer button presses through widefs?  seems like a hard way of doing it.  The only time I have ever used "Kepresses across WifeFS was so that I could make my Vatsim Microphone work from a button press on my yoke"

Perhaps if you let me know more about what you are trying to do, I could help more.

Trev
Trevor Hale

Owner
http://www.cockpitbuilders.com

Director of Operations
Worldflight Team USA
http://www.worldflightusa.com

VATSIM:

FLY737

Does anyone know the PM offset for "autopilot disconnect" ?
René Billiani
FLY737
http://www.fly737.com

Trevor Hale

#7
Hey Rene,

I believe it is


x-50A MCP Commands (Read/Write)                      Bit 0 (TO/GA switch)
          Bit 1 (A/P disconnect)
          Bit 2 (A/T disconnect)

http://www.schiratti.com/docs/PMOffsets.html


         
Trevor Hale

Owner
http://www.cockpitbuilders.com

Director of Operations
Worldflight Team USA
http://www.worldflightusa.com

VATSIM:

jackpilot

very good subject Trev...go on
Should not be rocket science but has to be explained in very primitive terms that "people who know" have a hard time to use lol
You did a good job...please persue..


Jack

Trevor Hale

Thanks Jack..  I will add more as I continue with my overhead rewire..  Just working on connecting it again to the interface, then I will be rereading this thread to figure out where I left off.

Trevor Hale

Owner
http://www.cockpitbuilders.com

Director of Operations
Worldflight Team USA
http://www.worldflightusa.com

VATSIM:

Nick1150

That's a great topic  :)

Thanks Trevor  :idiot:
Nick

Boeing 737 NG home cockpit builder in Athens, Greece

markuspilot

<confused>
Offset parameter for taxi, landing etc.
OK I got the offset + parameter for most of the stuff in the basic flight sim fs9 etc
using the offset byte and para value...

Got stuck on separating the light switches beacon, landing strobe taxi etc
0D0C  byte size is 2 with individual values for the separate lights

How do I input this offset as a byte or word, or ???
What goes into the parameter ?
The values listed in the FSUPIC as is 0 - 9 , or do I change these into binary or hex

</confused>

Mark

Trevor Hale

Quote from: markuspilot on November 09, 2012, 11:42:43 AM
Offset parameter for taxi, landing etc.
OK I got the offset + parameter for most of the stuff in the basic flight sim fs9 etc
using the offset byte and para value...

Got stuck on separating the light switches beacon, landing strobe taxi etc
0D0C  byte size is 2 with individual values for the separate lights

How do I input this offset as a byte or word, or ???
What goes into the parameter ?
The values listed in the FSUPIC as is 0 - 9 , or do I change these into binary or hex

Mark

Hi Mark,  I had to look at this again, because it is an old post and I haven't touched this in a while.. I am still building.  But I put this post here because of situations like this.

In FSUIPC Each Light switch has its own Bit (#'s 0 - 9)

From the FSUIPC SDK....

OFFSET: 0D0C

SIZE: 2

Lights, a switch for each one (bits from lo to hi):
0 Navigation
1 Beacon
2 Landing
3 Taxi
4 Strobes
5 Instruments
6 Recognition
7 Wing
8 Logo
9 Cabin

Bits go like this like in my example above.

7654 : 3210

So if we want the Taxi light on we "SET" 08 to a value of 1
or to turn it off we do a value of 0 to "CLEAR" 08

if you want the logo light on we "SET" 82 to a value of 1
or to turn it off we do a value of 0 to "CLEAR" 82

if you want the Recognition light on we "SET" 40 to a value of 1
or to turn it off we do a value of 0 to "CLEAR" 40

I hope that helps.

Trev
Trevor Hale

Owner
http://www.cockpitbuilders.com

Director of Operations
Worldflight Team USA
http://www.worldflightusa.com

VATSIM:

MLeavy737

  Seeing this thread i couldnt be happier i dumped all of this offset business for Xplane and its SDK!

As you were :)

Mike L
The 737 800/900... Fastest airplane with the gear down!

jackpilot

Quote from: MLeavy737 on November 13, 2012, 01:18:02 PM
  Seeing this thread i couldnt be happier i dumped all of this offset business for Xplane and its SDK!
Mike L

chicken... :D


Jack

Trevor Hale

Trevor Hale

Owner
http://www.cockpitbuilders.com

Director of Operations
Worldflight Team USA
http://www.worldflightusa.com

VATSIM:

MLeavy737

Damn right! Lol.  Good luck to ya'll.

Mike L
The 737 800/900... Fastest airplane with the gear down!

Trevor Hale

#17
Hi Guys.


Been a while since I added to this thread, but something I found today was worthy of addition.


Trying to trigger EGPWS test with button press I found the following.


BUTTON PRESS
Offset Byte Setbits
Offset= x564e Parameter = x40

BUTTON RELEASE
Offset Byte Clrbits
Offset= x564e Parameter = x40


Trev




Trevor Hale

Owner
http://www.cockpitbuilders.com

Director of Operations
Worldflight Team USA
http://www.worldflightusa.com

VATSIM:

Like the Website ?
Support Cockpitbuilders.com and Click Below to Donate