1. For downloading SimTools plugins you need a Download Package. Get it with virtual coins that you receive for forum activity or Buy Download Package - We have a zero Spam tolerance so read our forum rules first.

    Buy Now a Download Plan!
  2. Do not try to cheat our system and do not post an unnecessary amount of useless posts only to earn credits here. We have a zero spam tolerance policy and this will cause a ban of your user account. Otherwise we wish you a pleasant stay here! Read the forum rules
  3. We have a few rules which you need to read and accept before posting anything here! Following these rules will keep the forum clean and your stay pleasant. Do not follow these rules can lead to permanent exclusion from this website: Read the forum rules.
    Are you a company? Read our company rules

Simtools 2.4 setup to prevent negative vales and movement

► simtools
To prevent negative vales and movement take @yobuddy's advice and use SimTools v2.4, then allocate a '0' for the min value in Sway and Roll.

This basically turns off the negative inputs for this DOF

We should be able to do this without modified plugins like this. :cheers
First Game Engine needs to be in "Expert" mode, this gives us separate Min/Max files for both (a) and (b) Axis Assignments.
Then setup you axis assignments like this.

Notice this is the - (a) Axis Assignments.

Notice this is the - (b) Axis Assignments.

Then in Tuning Center, make sure both sets of Min/Max settings for (a) & (b) Axis assignments are the same, except for sway.
For (a) Axis Assignment use a sway like this.

And for (b) Axis Assignments use a sway like this.

What you have essentially done here is turn off sway in one direction for each axis (the 0 turns them off in that direction.)
Now all you have to do is change your interface output.
Wherever you are using <Axis2a> Change it to <Axis2b>.

With this example above, all game plugins should be usable without modification.
If anything in the example needs more explaining, let me know!
Take care, :thumbs

►in your code:
We're sending 8 bits to Arduino as per interface settings, so that means values between 0 and 255. 0-127 is -ve and 128-255 is positive (heave/surge)

I can't do -ve DOF so I have this line that clips anything 0-127 and 128 is minimum

if (actuatorPosition[currentActuator]<128) actuatorPosition[currentActuator]=128;

So now the values are 128-255 and these are mapped to the values which go to the servo as per below. These numbers vary servo by servo and with ASMC/E you even need to tweak for individual servos depending on how the tiny pots might have been adjusted for sensitivity.
RacingMat likes this.
Aug 25, 2019
Page Views: