Stormworks: Build and Rescue

Stormworks: Build and Rescue

Heading Hold Microcontroller
77 kommenttia
Orange 30.7. klo 19.35 
ok ty :D
Mr. Leonard  [tekijä] 30.7. klo 17.46 
It should yes. Some users have told me they have added it to their helis
Orange 30.7. klo 13.10 
does this work for helicopters
Mr. Leonard  [tekijä] 15.7. klo 18.16 
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.6. klo 16.25 
Why dont you have a number input for the heading?
E. 8.12.2023 klo 20.53 
Where do i connect everything
doeydobar 9.8.2023 klo 13.25 
Great, thanks. Wont be done for another few weeks
Mr. Leonard  [tekijä] 8.8.2023 klo 20.10 
Yea for sure. Let me know when you upload it. I'd like to check it out.
doeydobar 8.8.2023 klo 16.49 
Can I use this in a future workshop submission? You will be credited in big blue letters
Nick Name 13.12.2022 klo 13.05 
Oki thanks !
Mr. Leonard  [tekijä] 10.12.2022 klo 8.07 
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.12.2022 klo 7.09 
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  [tekijä] 20.5.2022 klo 7.31 
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.5.2022 klo 9.52 
Where I plug in current heading output degrees
Mr. Leonard  [tekijä] 21.12.2021 klo 22.38 
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.12.2021 klo 22.07 
where do i connect the stored heading??
ecwskier 31.7.2021 klo 20.28 
ok :steamthumbsup:
Mr. Leonard  [tekijä] 30.7.2021 klo 16.40 
I'm not the best at PID tuning myself but there are lots of good guides out there.
ecwskier 29.7.2021 klo 22.16 
how do you think i should tune it
Mr. Leonard  [tekijä] 29.7.2021 klo 20.56 
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.7.2021 klo 17.44 
ok:steamthumbsup:
Mr. Leonard  [tekijä] 28.7.2021 klo 17.19 
Cool I'll try and take a look at it tonight
ecwskier 28.7.2021 klo 15.44 
here i was ganna put it on the workshop anyways
ecwskier 28.7.2021 klo 15.18 
i cant message you without friending you friend me temporarily
ecwskier 28.7.2021 klo 15.14 
ok :steamthumbsup:
Mr. Leonard  [tekijä] 28.7.2021 klo 13.52 
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.7.2021 klo 12.00 
somthing else is wrong with it though
ecwskier 28.7.2021 klo 11.28 
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.7.2021 klo 21.46 
how do you want me to do that
Mr. Leonard  [tekijä] 27.7.2021 klo 19.58 
@ecwskier if you want to send me you creation privately I can open it up and see why it is not working.
ecwskier 27.7.2021 klo 18.34 
doesnt work to good with my helicopter it over corrects and slowly goes back like really slow
Mr. Leonard  [tekijä] 17.3.2021 klo 8.30 
Thanks for the link-back *****! Happy that this MC is helping so many creators out there.
***** 17.3.2021 klo 2.11 
Thank you for your creation. Incorporated into my helicopter .
Brygun 8.3.2021 klo 13.19 
Simple, works and if all you want is a go-that way only needs one button on the space demanding dashboard. Thanks.
***** 1.2.2021 klo 23.21 
Nice controller. Works well in my helicopter.
The Big Fish 21.1.2021 klo 22.30 
This microcontroller is so useful, i have no complaints whatsoever
RedneckRepublic 15.11.2020 klo 13.09 
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  [tekijä] 15.11.2020 klo 12.24 
Thank you Martin! I am glad it is useful
RedneckRepublic 14.11.2020 klo 18.52 
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.10.2020 klo 11.08 
Just found this controller and started using it for my submarines, works great!
Luchador 22.9.2020 klo 13.27 
My boat goes left and right when I turn heading hold on
Wivi2013 21.8.2020 klo 11.41 
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.7.2020 klo 15.27 
When I Tested It The Stored Heading On That Was Connected To A Dial Continued To Say 0.
Jono2745 18.7.2020 klo 15.53 
works amazingly, even though i'm using it for a helicopter. great job!
Mr. Leonard  [tekijä] 3.7.2020 klo 18.37 
Thanks Waffle :D
Wafflez [CZ] 3.7.2020 klo 8.42 
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  [tekijä] 21.6.2020 klo 8.55 
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.6.2020 klo 0.50 
@ 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.6.2020 klo 1.52 
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.