Stormworks: Build and Rescue

Stormworks: Build and Rescue

评价数不足
Heading Hold
   
奖励
收藏
已收藏
取消收藏
Vehicles: Air, Sea, Land
Microcontrollers: Navigation, Microcontroller
标签: v1.4.15
文件大小
发表于
22.375 KB
2022 年 4 月 11 日 下午 11:12
1 项改动说明 ( 查看 )

订阅以下载
Heading Hold

在 Von Diebel 的 1 个合集中
Feudal's Lazy Nav Tools
4 件物品
描述
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 条留言
jamtime2002 6 月 15 日 下午 7:30 
Is the back compass meant to face forward or backwards?
OffemTubs 2023 年 12 月 8 日 下午 11:36 
great stuff! is there any way i can get it working for 700 mph + aircraft?
Citrus Shadow 2023 年 4 月 10 日 下午 2:12 
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 2022 年 12 月 9 日 下午 1:08 
This is amazing thanks for sharing it with the community
sᴅs ColossalClock 2022 年 5 月 19 日 上午 11:30 
This works perfectly, nice job.