Stormworks: Build and Rescue

Stormworks: Build and Rescue

Not enough ratings
Heading Hold
   
Award
Favorite
Favorited
Unfavorite
Vehicles: Air, Sea, Land
Microcontrollers: Navigation, Microcontroller
Tags: v1.4.15
File Size
Posted
22.375 KB
11 Apr, 2022 @ 11:12pm
1 Change Note ( view )

Subscribe to download
Heading Hold

In 1 collection by Feudal
Feudal's Lazy Nav Tools
4 items
Description
Holds heading for any craft reliably and smoothly, at least for planes. Probably works with boats/cars too, might take some fiddling of the PID, comment if you have any issues.

For the longest time I wanted a working heading holder that could handle the south flip, where the compass goes from .5 straight to -.5. And also a heading holder that isn't trash. This is that, finally made, took way too long to figure out.


The solution was to use two compasses, forward is used when it's above 270 degrees or below 90, and that compass is also locked for the process variable in the PID if you're worried. Back compass is used from 90 to 270. So essentially the only way you could break this MC is if you flip the entire craft around at least 90 degrees, although at that point you probably have bigger issues.

If you'd like to use this in a creation just link.
5 Comments
jamtime2002 15 Jun @ 7:30pm 
Is the back compass meant to face forward or backwards?
OffemTubs 8 Dec, 2023 @ 11:36pm 
great stuff! is there any way i can get it working for 700 mph + aircraft?
Citrus Shadow 10 Apr, 2023 @ 2:12pm 
Works for my boat, its 10,000 mass with 2 large engines and a large fuel tank. I turned wind and rain on full to see if the boat pulled me back to the heading I set and it did, wonderful job!
But Hull 9 Dec, 2022 @ 1:08pm 
This is amazing thanks for sharing it with the community
sᴅs ColossalClock 19 May, 2022 @ 11:30am 
This works perfectly, nice job.