Jump to content
The simFlight Network Forums

Braking smooth


Recommended Posts

Due to physical limitations I must use a button on the joystick.. Thinking this would be a perfect little LUA project to delve into. A log or linear increase in braking over time, ~2.5 seconds. This would reduce the harshness & give the ability use the momentary action as Pete mentioned above a little more effectively. A much better option than adjusting the .air file (only way to adjust) for each airplane. 

 

The brain is pondering... Will give it a go. 

Link to comment
Share on other sites

Gave it a go with excellent results. It helps out quite a bit when using a button, toggling on/off to get a mixed brake strength. The code is in the User Contributions section.

 

Pete - If you see any glaring problems with this -or- have some ideas to make it better I would be grateful.. A lua beginner.   

 

Very good for a "Lua beginner" :-), but I think you should look at using events instead. I've posted some ideas in the thread in User Contributions. Ask questions if you need to.

 

Pete

Link to comment
Share on other sites

Thanks Pete!

 

 My 1st 3 versions were done inside a single file. I tried just about everything you mentioned ( event.) and just couldn't get it to work reliably. Forgot about event.param. Going to try again. Trying to make it easy on the user side to setup. 

 

Thanks! will advise.

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