Jump to content
The simFlight Network Forums

Recommended Posts

Posted
43 minutes ago, Sandy R said:

Success!!!

Great!

44 minutes ago, Sandy R said:

I am however concerned as to why my brake lever was reversed in the first place. I hadn't really questioned it before when all I had to do was tick the 'reversed' box in the dialog before binding the control. However, I now suspect that I may have reversed the polarity of one of the magnets when I was assembling the Hall Sensor units. This means that if I were to share the script on the Authentikit forum, it's only going to work for people who've made the same stupid mistake as I when building their control columns. I think I will go back and redo this fix 'mechanically'* (ie reverse the magnet), and then verify that the original script works ok.

It is not an issue if an axis is/needs reversing - many axes work in this manner.
To handle this nicely in the script, you can add add two boolean variables - rudderAxisReversed, brakeAxisReversed, and then use those to determine whether to reverse or not. Then it is a simple matter of setting those to true or false. 

If you can attach the script you are using, I can make those changes for you.

John

Posted

Also, note other users may have an issue with the axis range, not just the reversing. As I said, the script expects each axis to be in the -16383 - +16383 range. Quite a few axes, especially those home-made using potentiometers, can have a different range. If this is the case, you would also need to calibrate the pot's range input to the script to -16383 - +16383.

John

Posted

John,
I have reversed the polarity of the magnet in the hall effect sensor arrangement on which the Brake Lever relies. This 'Un-reversed' the brake control and enabled me to test your original script and prove it worked perfectly 'straight out of the box'.

Also, I was able to check that I had built it as designed first time round so the likelihood is that anyone who's built the Authentikit Spitfire Control Column will have the brake control axis reversed same as I did! Nice to know that I'm not a complete idiot!

I am returning the two LUA scripts here should you wish to make the axis independent script you suggested.

Thank you so much for this, you wouldn't believe how much joy* this has brought me.

Regards

Sandy

*and frustration - if you thought the Spit's ground handling was challenging, try adding differential braking to the mix 

spitfireBrake.lua spitfireBrakeRev.lua

Posted

Thank you so much (again). I shall test this out then post it on the Authentikit forum. I hope you get flooded with FSUIPC sales from them as a result!

Reading through your script, it looks like I really over complicated things when I tried to reverse the axis! I console myself with the fact that at least it worked!

Best Regards

 

Sandy

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