Stormworks: Build and Rescue

Stormworks: Build and Rescue

Shillelagh Sep 22, 2020 @ 2:21pm
Adjust Remote Sensitivity?
Currently making a Remotely controlled vehicle, but the handheld RC unit has hellishly slow sensitivity making it impossible to have a working autobrake and precision movement required for the topic. Any way to increase it?
< >
Showing 1-7 of 7 comments
Ra-Ra-Rasputin Sep 22, 2020 @ 3:40pm 
Futz around with the numbers in microcontrollers with f(x) maths:
1. Super simple method: x*2 (or more)
2. The chad curve: sin(x)+2*(x/10)
3. The aggressive chad curve: sin(x*2)+0.1*x (fixed)

4. The wrinkly brain: Don't use an f(x) but instead use the delta value to detect whether or not the change in the analog value is negative or positive, handle 0 state as reset for an up/down counter that you can customize to have desired sensitivity
Last edited by Ra-Ra-Rasputin; Sep 23, 2020 @ 2:31am
Shillelagh Sep 22, 2020 @ 7:12pm 
i was thinking about a delta but functions seem more useful. Aggressive chad curve it is.
GrumpyOldMan Sep 22, 2020 @ 7:55pm 
Originally posted by Ra-Ra-Rasputin:
Futz around with the numbers in microcontrollers with f(x) maths:
1. Super simple method: x*2 (or more)
2. The chad curve: sin(x)+2*(x/10)
3. The aggressive chad curve: sin(x*2)

4. The wrinkly brain: Don't use an f(x) but instead use the delta value to detect whether or not the change in the analog value is negative or positive, handle 0 state as reset for an up/down counter that you can customize to have desired sensitivity

I know these are mere examples but I wouldn't use any of those 3 unless you're ok with introducing either huge deadzones to your input axis (example 1), or think it's ok to get a 0.9 output with a 1.0 input as in example 3 (sin(2)=0.909).
Delta would be similar to setting the helm/control seat axis to 100% and let that control an up/down counter, or better a custom lua snippet where you can manipulate increase and fallback rates of individual inputs or even combine them (think roll and yaw on planes).
Ra-Ra-Rasputin Sep 23, 2020 @ 2:31am 
Originally posted by GrumpyOldMan:

I know these are mere examples but I wouldn't use any of those 3 unless you're ok with introducing either huge deadzones to your input axis (example 1), or think it's ok to get a 0.9 output with a 1.0 input as in example 3 (sin(2)=0.909).
Delta would be similar to setting the helm/control seat axis to 100% and let that control an up/down counter, or better a custom lua snippet where you can manipulate increase and fallback rates of individual inputs or even combine them (think roll and yaw on planes).

The second one actually goes up to 1.04 and has no deadzones!
I would only have to guess his use cases. If it's anything but throttle, it's generally fine to not hit 1, but you can fix that issue with the aggressive chad curve by doing sin(x*2)+x*0.1.

I would hardly ever use the first one, but as you say they're more examples than perfect implementations.
Last edited by Ra-Ra-Rasputin; Sep 23, 2020 @ 2:32am
Shillelagh Sep 23, 2020 @ 11:41am 
Originally posted by Ra-Ra-Rasputin:
Originally posted by GrumpyOldMan:

I know these are mere examples but I wouldn't use any of those 3 unless you're ok with introducing either huge deadzones to your input axis (example 1), or think it's ok to get a 0.9 output with a 1.0 input as in example 3 (sin(2)=0.909).
Delta would be similar to setting the helm/control seat axis to 100% and let that control an up/down counter, or better a custom lua snippet where you can manipulate increase and fallback rates of individual inputs or even combine them (think roll and yaw on planes).

The second one actually goes up to 1.04 and has no deadzones!
I would only have to guess his use cases. If it's anything but throttle, it's generally fine to not hit 1, but you can fix that issue with the aggressive chad curve by doing sin(x*2)+x*0.1.

I would hardly ever use the first one, but as you say they're more examples than perfect implementations.
Use case is a RC forklift, the sensitivity adjustment is just for sharp movements. Im also using a automatic brake, so if the throttle responds low (or high in the case of reverse) then it brakes, so having low sensitivity means it takes a second to get moving and to stop, which isn't ideal. Thanks
Ra-Ra-Rasputin Sep 23, 2020 @ 11:48am 
Well, good to hear that it was helpful!
Pete Sep 23, 2020 @ 12:05pm 
Scaling sensitivity with vehicle speed is very doable too. Delta isn't always a very high resolution source of feedback, due to measuring the difference per tick. However, its great for determining if you are actually pressing the button or not, which is good for things like anticipatory braking.

So I tend to introduce delta as a boolean. Is the control greater than zero? AND is the delta less than zero? AND is the speed greater than zero? That means you are on the brakes and wanting to stop. So simply subtracting 1 from the control when those conditions are true, gives you much sharper braking.
< >
Showing 1-7 of 7 comments
Per page: 1530 50

Date Posted: Sep 22, 2020 @ 2:21pm
Posts: 7