Stormworks: Build and Rescue

Stormworks: Build and Rescue

Simple Compact Autopilot (for boats)
11 Comments
Keepfera  [author] 11 Nov, 2018 @ 11:11am 
Of course bro! There's some better ones out there by Tajin and Tt that I would recommend
SC0RP10N 11 Nov, 2018 @ 7:51am 
Can I put this in a creation of mine? I have already linked this creation and credited you with the autopilot
DinoDude777 17 Jul, 2018 @ 6:26pm 
ty:steamhappy:
Keepfera  [author] 16 Jul, 2018 @ 3:15pm 
Okay, I've been busy today, thanks for the inspiration Tajin! I've now developed a functioning autopilot system based on the compass method via the atan2 logic I made. Find it here https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1442986350
Keepfera  [author] 16 Jul, 2018 @ 11:02am 
You inspired me to make an atan2 function!
If you fancy it, it's here https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1442802901
Keepfera  [author] 16 Jul, 2018 @ 8:16am 
Without a doubt, trig is the superior choice for accuracy and it wont suffer from PID bounce as much at far distances. The lack of atan2 was exactly my problem. Any system I made would get confused by the slip at pi radians (half turn) from the compass sensor.
Tajin 16 Jul, 2018 @ 7:49am 
Yeah it is. Especially before we had those trig functions.

I've actually had a bit of a discussion about that on discord lately. With some someone who claimed doing it with trigonometry would be so much better because of accuracy and whatnot.

I think it would take roughly 4 or 5 times as much space, with the only real benefit of beeing able to display your bearing on screen before turning to it.


Lets hope they add atan2, then it'll worth reconsidering that.
Keepfera  [author] 16 Jul, 2018 @ 7:43am 
I'm going on for a PhD in Maths, I tried doing some shit with arctans but figured this is way simpler xD
Tajin 16 Jul, 2018 @ 7:42am 
Nah its fine. It's actually nice to see that someone has a similar way of thinking ;)
Keepfera  [author] 16 Jul, 2018 @ 7:41am 
That's the idea, its just the default boat for a proof of concept to anyone wishing to use it! I've just seen yours and yes it looks strikingly similar but honestly I was unaware you had done this first, if you like I'll take it down, apologies.