Stormworks: Build and Rescue

Stormworks: Build and Rescue

Heading Hold Microcontroller
77 Comments
Orange 30 Jul @ 7:35pm 
ok ty :D
Mr. Leonard  [author] 30 Jul @ 5:46pm 
It should yes. Some users have told me they have added it to their helis
Orange 30 Jul @ 1:10pm 
does this work for helicopters
Mr. Leonard  [author] 15 Jul @ 6:16pm 
This one is a bit different from your typical keypad heading set system. Basically you point your vehicle in the direction you want to hold heading, then activate the System Enabled input via a button or other toggle input. The MC then automatically sets your current heading to the held heading. Then you can use the adjust left or right to fine-tune the direction you want to travel. If you would rather input a heading in any direction from a keypad, this may not be the most optimized for your use, however, it would not be difficult to add an additional input to this MC that serves as the "held" heading, while keeping the rest of the logic the same.
SpeedKiller.txt 16 Jun @ 4:25pm 
Why dont you have a number input for the heading?
E. 8 Dec, 2023 @ 8:53pm 
Where do i connect everything
doeydobar 9 Aug, 2023 @ 1:25pm 
Great, thanks. Wont be done for another few weeks
Mr. Leonard  [author] 8 Aug, 2023 @ 8:10pm 
Yea for sure. Let me know when you upload it. I'd like to check it out.
doeydobar 8 Aug, 2023 @ 4:49pm 
Can I use this in a future workshop submission? You will be credited in big blue letters
Nick Name 13 Dec, 2022 @ 1:05pm 
Oki thanks !
Mr. Leonard  [author] 10 Dec, 2022 @ 8:07am 
Hmm I do not but this is a good variation I should probably try to post. I can see how using a number input block to set the desired heading would be useful.
Nick Name 9 Dec, 2022 @ 7:09am 
Do you have a version that could take in a value from 0 - 360 for the desired heading, tryna make a ww2 torpedo for my u-boat
Mr. Leonard  [author] 20 May, 2022 @ 7:31am 
You can hook it up to a display so you can see what heading the microcontroller will be trying to hold. It is not required to use, just nice to be able to see what heading that is set.
TodayOnBottomGear 19 May, 2022 @ 9:52am 
Where I plug in current heading output degrees
Mr. Leonard  [author] 21 Dec, 2021 @ 10:38pm 
You don't actually have to connect that to anything if you don't want. It is just an output there in case you wanted to show the stored heading on a gauge or screen in your vehicle's cockpit.
birb 21 Dec, 2021 @ 10:07pm 
where do i connect the stored heading??
ecwskier 31 Jul, 2021 @ 8:28pm 
ok :steamthumbsup:
Mr. Leonard  [author] 30 Jul, 2021 @ 4:40pm 
I'm not the best at PID tuning myself but there are lots of good guides out there.
ecwskier 29 Jul, 2021 @ 10:16pm 
how do you think i should tune it
Mr. Leonard  [author] 29 Jul, 2021 @ 8:56pm 
It drifts a bit for me but it does eventually re-correct itself. Try tuning the PID inside the MC a little more to your craft. That will hopefully help it perform a little less sluggish.
ecwskier 28 Jul, 2021 @ 5:44pm 
ok:steamthumbsup:
Mr. Leonard  [author] 28 Jul, 2021 @ 5:19pm 
Cool I'll try and take a look at it tonight
ecwskier 28 Jul, 2021 @ 3:44pm 
here i was ganna put it on the workshop anyways
ecwskier 28 Jul, 2021 @ 3:18pm 
i cant message you without friending you friend me temporarily
ecwskier 28 Jul, 2021 @ 3:14pm 
ok :steamthumbsup:
Mr. Leonard  [author] 28 Jul, 2021 @ 1:52pm 
Might have to just upload it to the workshop as unlisted and send me a pm with the workshop link. You can take it down after I have a chance to save it for testing.

https://imgur.com/a/mDAEnUE
ecwskier 28 Jul, 2021 @ 12:00pm 
somthing else is wrong with it though
ecwskier 28 Jul, 2021 @ 11:28am 
i think i found out why, its because while the gyro is on the heli tilts left and right, i dont know why. do you know how to fix this
ecwskier 27 Jul, 2021 @ 9:46pm 
how do you want me to do that
Mr. Leonard  [author] 27 Jul, 2021 @ 7:58pm 
@ecwskier if you want to send me you creation privately I can open it up and see why it is not working.
ecwskier 27 Jul, 2021 @ 6:34pm 
doesnt work to good with my helicopter it over corrects and slowly goes back like really slow
Mr. Leonard  [author] 17 Mar, 2021 @ 8:30am 
Thanks for the link-back *****! Happy that this MC is helping so many creators out there.
***** 17 Mar, 2021 @ 2:11am 
Thank you for your creation. Incorporated into my helicopter .
Brygun 8 Mar, 2021 @ 1:19pm 
Simple, works and if all you want is a go-that way only needs one button on the space demanding dashboard. Thanks.
***** 1 Feb, 2021 @ 11:21pm 
Nice controller. Works well in my helicopter.
The Big Fish 21 Jan, 2021 @ 10:30pm 
This microcontroller is so useful, i have no complaints whatsoever
RedneckRepublic 15 Nov, 2020 @ 1:09pm 
Best part was i took my survey chart for the ocean floor and it just merged perfectly with this. made it nearly fully automatic for surveying the bottom
Mr. Leonard  [author] 15 Nov, 2020 @ 12:24pm 
Thank you Martin! I am glad it is useful
RedneckRepublic 14 Nov, 2020 @ 6:52pm 
Thank you for making such a simplistic and easy controller that can be used in many different creations from subs to boats and maybe even planes! i just want to thank you for making an awesome controller, that ive used basicly since it came out
Canadagoose 10 Oct, 2020 @ 11:08am 
Just found this controller and started using it for my submarines, works great!
Luchador 22 Sep, 2020 @ 1:27pm 
My boat goes left and right when I turn heading hold on
Wivi2013 21 Aug, 2020 @ 11:41am 
The best stand-alone Heading-Hold I came across until now.
Easy to use and modify to my needs and effective in every aspect
MorosePlains705 21 Jul, 2020 @ 3:27pm 
When I Tested It The Stored Heading On That Was Connected To A Dial Continued To Say 0.
Jono2745 18 Jul, 2020 @ 3:53pm 
works amazingly, even though i'm using it for a helicopter. great job!
Mr. Leonard  [author] 3 Jul, 2020 @ 6:37pm 
Thanks Waffle :D
Wafflez [CZ] 3 Jul, 2020 @ 8:42am 
Works great! :cozyspaceengineersc: Been going through many "Heading controllers" for ships and this one is the easiest one to use and to install from all I've seen. Must have for all new and old players. Thanks !
Mr. Leonard  [author] 21 Jun, 2020 @ 8:55am 
Thanks Kronus, I have included your change and updated the microcontroller. I have also included a simple optional output to display the current heading in world degrees. I figured this was a value most people would want to show if they were using this MC, and they won't have to have their own logic nodes to show it now.

I still seem to have an issue with the display freaking out at 180 degrees. I think this is due to the tickrate or possibly math rounding. If anyone has a good solution for that, I will be happy to implement it.

Thanks again all!
Kronus 21 Jun, 2020 @ 12:50am 
@ Mr. Leonard , I found the problem. I have temporarily uploaded the fix here https://steamproxy.net/sharedfiles/filedetails/?id=2136984138 so you can copy it and fix it in your creation. (you will see the walkarround to the right) Now the stored heading output actually shows the right heading. Once you have fixed your creation I will delete my upload.
Kronus 18 Jun, 2020 @ 1:52am 
Mr Leonard. The screen on the right shows the actual boat's course straight from the compass sensor and converted in degrees. The screen on the left shows the stored heading from your MC. I am glad you liked my boat.