Jump to content

Gear control using VXD number and EPICINFO?


Recommended Posts

Dear users,

I'm using EPICINFO for interfacing FS2K2 and EPIC USB. I'd like to adjust the FSUIPC offset 0xBE8 for gear control (down: 16382, up: 0). Somewhere I read about defining a (free) VXD number in EPL like this:

:Gear_down {enque16(BtnOn,1); // VXD no. 1

:Gear_up {enque16(BtnOff,1);

My questions are: can EPICINFO handle VXD numbers? And what would be the appropriate entry for FSUIPC_Write? I have two buttons connected to EPIC for my gear lever being in UP and DOWN position ('OFF' is not connected).

And last but not least: I VXD numbers are the wrong approach, what other possibility will I have?

Thank you all for any comments!

Regards,

Michael

Link to comment
Share on other sites

I did it like this:

// First we define our incoming buttons

#define B_GEAR_UP	110
#define B_GEAR_DOWN	111

// And then we define the outgoing Buttons to Flight Sim

#define BO_GEAR_UP	1	// Device 1, Button 1
#define BO_GEAR_DOWN	2	// Device 1, Button 2

// Link the buttons to EPL Code

definebutton(B_GEAR_UP,	  on,	GEAR_UP )
definebutton(B_GEAR_DOWN, on,	GEAR_DOWN )

:GEAR_UP
{
  enque16(BtnPulse,BO_GEAR_UP)
}

:GEAR_DOWN
{
  enque16(BtnPulse,BO_GEAR_DOWN)
}

In the fs2002cfg
=================
The big number after the joystick will probably be different for you.

[JOYSTICK_MAIN {6F1D2B71-D5A0-11CF-BFC7-444553540000}]
LOCKED=1
BUTTON_DOWN_EVENT_1=GEAR_UP
BUTTON_DOWN_EVENT_2=GEAR_DOWN

Link to comment
Share on other sites

Dear Stuart,

thank you very much for your hint! I'm going to try it later today... But actually I wanted to avoid editing FS2002.cfg (with _so_ many config files on my system). Is there any way that EPICINFO instead of FS2K2 catches the BtnPulse and then addresses the appropriate FSUIPC offset?

Maybe this sounds strange, but this is the way I like it 8) 8) 8)

As always: I appreciate every comment on that!

Michael

Link to comment
Share on other sites

Okay, I haven't tried this myself, but you could try something like:

In EpicInfo.cfg:

AXISREADS=Both
GEAR_SET=P0

In your EPL:

:GEAR_UP 
{ 
  enque16(SetPovn0,1) 
} 

:GEAR_DOWN 
{ 
  enque16(SetPovn0,0) 
} 

They might end up the wrong way around, ie 1 may be down, and 0 may be up.

Let me know if this works. :)

Link to comment
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
 Share

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