Stormworks: Build and Rescue

Stormworks: Build and Rescue

Funky Oct 11, 2019 @ 3:59am
Reset Button Microcontroller / Logic?
Hey, I have up / down assigned to some rudders, they are sticky. I want to be able to press a button to reset them to zero. Can anyone help with how to do this?
< >
Showing 1-6 of 6 comments
HoboCop Oct 11, 2019 @ 5:17am 
There's an up and down counter logic component with a reset value. I use it for toggling between "modes" in a microcontroller I made that I then can "reset" back to "off" (1).

https://prnt.sc/phwzw4
Funky Oct 11, 2019 @ 5:24am 
Originally posted by HoboCop:
There's an up and down counter logic component with a reset value. I use it for toggling between "modes" in a microcontroller I made that I then can "reset" back to "off" (1).

https://prnt.sc/phwzw4
Thanks - thats kinda what I have, but whenever I release the "RESET" button, it flips back to using the value set by up / down. So it does reset the trim, but as soon as the button is released it pops back. Ideally it will also reset the value set by up / down!
HoboCop Oct 11, 2019 @ 5:27am 
Originally posted by Funkcanna:
Originally posted by HoboCop:
There's an up and down counter logic component with a reset value. I use it for toggling between "modes" in a microcontroller I made that I then can "reset" back to "off" (1).

https://prnt.sc/phwzw4
Thanks - thats kinda what I have, but whenever I release the "RESET" button, it flips back to using the value set by up / down. So it does reset the trim, but as soon as the button is released it pops back. Ideally it will also reset the value set by up / down!

What are you using to control the UP/DOWN?
Funky Oct 11, 2019 @ 5:58am 
Originally posted by HoboCop:
Originally posted by Funkcanna:
Thanks - thats kinda what I have, but whenever I release the "RESET" button, it flips back to using the value set by up / down. So it does reset the trim, but as soon as the button is released it pops back. Ideally it will also reset the value set by up / down!

What are you using to control the UP/DOWN?
Up and Down :) from the pilot seat
HoboCop Oct 11, 2019 @ 6:08am 
For it to work with this logic block, you would need to configure the min as -1, max as 1 and reset / default as 0.
Then the up / down need to be a push button each, then you could bind the "up" key to the up button and the same with down. This way, every time you press the UP key, it will press the "up" button which will count up. Then using a reset button will revert the previous count to zero. Also you should use the clamp feature that is built in too.
It should work after that.
Funky Oct 11, 2019 @ 6:28am 
Originally posted by HoboCop:
For it to work with this logic block, you would need to configure the min as -1, max as 1 and reset / default as 0.
Then the up / down need to be a push button each, then you could bind the "up" key to the up button and the same with down. This way, every time you press the UP key, it will press the "up" button which will count up. Then using a reset button will revert the previous count to zero. Also you should use the clamp feature that is built in too.
It should work after that.
Ok got it, thanks for your help!
< >
Showing 1-6 of 6 comments
Per page: 1530 50

Date Posted: Oct 11, 2019 @ 3:59am
Posts: 6