Jump to content

Having a go at scripting. Work in progress.


Kevlon

Recommended Posts

Hi all.

 

Bought the Warthog Throttle.

 

And I am having a go at scripting, its pretty fun. Just reading the manual atm.

 

My plan is to make a working script for the Harrier. good times :)

 

 

 

One question about the MapAxis optional parameters.

 

with the slew axis I wrote this :

 

MapAxis(&Throttle, SCX, DX_XROT_AXIS, MAP_RELATIVE);

MapAxis(&Throttle, SCY, DX_YROT_AXIS, MAP_RELATIVE);

 

But when I test it in the device analyzer, they return to the center. I thought they were supposed to stay at the maximum or minimum value reached until you change your movement direction.

 

That is what the manual says anyway, what am I doing wrong?

 

Solved it, it should be this:

 

MapAxis(&Throttle, SCX, DX_XROT_AXIS, AXIS_NORMAL, MAP_RELATIVE);

MapAxis(&Throttle, SCY, DX_YROT_AXIS, AXIS_NORMAL, MAP_RELATIVE);

 

I was missing one parameter


Edited by Kevlon

[sIGPIC][/sIGPIC]

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...