Author Topic: CH Pro Pedal question  (Read 298 times)

Offline miraj

  • Copper Member
  • **
  • Posts: 108
CH Pro Pedal question
« on: November 09, 2006, 09:28:04 AM »
I have the CH pro pedals , and am wondering if the rudders on Aces High
 
can be controled WITHOUT the 'sliding-back-and-forth' action , but WITH

the 'tipping-foward' action.

 

 I have tried configuring , and it does not seem to let me do it.

 I am using a HOTAS stick and throttle , and CH Pro pedals.

 Please help me figure this out , I really do prefer to use the tipping action
 
instead of the sliding action.

 
 Thanks in advance for the help, you guys have been great advising me on my system.

Offline SkyChimp03

  • Parolee
  • Nickel Member
  • ***
  • Posts: 448
Re: CH Pro Pedal question
« Reply #1 on: November 09, 2006, 10:22:20 AM »
Quote
Originally posted by miraj
I have the CH pro pedals , and am wondering if the rudders on Aces High
 
can be controled WITHOUT the 'sliding-back-and-forth' action , but WITH

the 'tipping-foward' action.

 

 I have tried configuring , and it does not seem to let me do it.

 I am using a HOTAS stick and throttle , and CH Pro pedals.

 Please help me figure this out , I really do prefer to use the tipping action
 
instead of the sliding action.

 
 Thanks in advance for the help, you guys have been great advising me on my system.


In that case you might get old ch pedals...

But no aces high has *one* axis for rudder and toebreaks are two themselfs.

Offline DonULFonso

  • Zinc Member
  • *
  • Posts: 98
      • http://www.Thrustmaster-X-Files.de
CH Pro Pedal question
« Reply #2 on: November 09, 2006, 01:24:57 PM »
This IS possible, but you'll need a script to set up each toebrake to generate half of the rudder axis' values.

Offline miraj

  • Copper Member
  • **
  • Posts: 108
CH Pro Pedal question
« Reply #3 on: November 09, 2006, 02:10:35 PM »
Quote
Originally posted by DonULFonso
This IS possible, but you'll need a script to set up each toebrake to generate half of the rudder axis' values.


 My computer tech is coming over tonight , will he know what you mean by this?

 Could you please elaborate on this?

 Many, many thanks.

Offline DonULFonso

  • Zinc Member
  • *
  • Posts: 98
      • http://www.Thrustmaster-X-Files.de
CH Pro Pedal question
« Reply #4 on: November 10, 2006, 10:23:10 AM »
OK, here's what to do:

Open an existing (controller-)map or create a new one via the Control Manager's "Map Wizard" which walks you through this process step by step. Add your CH USB-controllers to the map and enable scripting by adding the "CMS Controls".

Push your rudder and the according axis' dialog will be displayed. Uncheck the "DX Mode"-checkbox and leave the "Programmed Function" blank. Repeat this for both toebrakes. Then go to the "CMS Controls"-tab and select the virtual axis "A1": be sure its "DX Mode"-checkbox is marked and select "Device 1" and "R Axis" from the drop-down lists; this prepares this virtual axis to generate the rudder-axis' output (controlled via the script below).

Last but not least open the "CMS Editor" and copy and paste the following script into it (and hope I didn't screw it up ;) : I'm at friends right now so I don't have any CM at hand to validate my code and ensure there are no syntax errors):


SCRIPT                                    // beginning of script

   IF ( [ JS3.A1 >= JS3.A2 ] ) THEN       // if left toebrake pushed then
          CMS.A1  = 128 - ( JS3.A1 / 2 ); // subtract half of its value from rudder's center value
   ELSE                                   // else
// IF ( [ JS3.A1 <  JS3.A2 ] ) THEN       // if right toebrake pushed then
          CMS.A1  = 128 + ( JS3.A2 / 2 ); // add      half of its value to rudder's center value
// ENDIF
   ENDIF

ENDSCRIPT                                 // end       of script

(The lines starting with "//" are not needed but just left in for illustration.) What does it do?

Well, it sets up the left toebrake to generate the left rudder's part of the rudder-axis' output, and the right toebrake to generate the right rudder's part of the rudder-axis' output; if both toebrakes are pushed at the same time, then the lower one scores.

An analog axis has a range from 0 to 255, with its center-position being 128. For the rudder-axis, a value in the range from 0 to 127 means "rudder left", a value from 129 to 255 means "rudder right". For the toebrakes, a value of 0 means "released", a value of 255 means "fully pushed", and there is no center position. To mimic the left rudder, half of the left toebrake's value is to be subtracted from the rudder's center-value, and to mimic the right rudder, half of the right toebrake's value is to be added to the rudder's center-value. It's simple arithmetics - that's why it's looking so confusing ;) (and I'll compile and test the code once I'll be home again to see whether I've been confused, too :rolleyes: ).

Offline miraj

  • Copper Member
  • **
  • Posts: 108
CH Pro Pedal question
« Reply #5 on: November 10, 2006, 12:30:25 PM »
I owe you a big favor , thanks so much!!!

Offline DonULFonso

  • Zinc Member
  • *
  • Posts: 98
      • http://www.Thrustmaster-X-Files.de
CH Pro Pedal question
« Reply #6 on: November 10, 2006, 02:51:35 PM »
NP, you're welcome :) !

I've just checked the snippet and it worked like it should :rolleyes: , so if you should encounter any issues with setting your stuff up properly, just holler ;) , OK?