Stormworks: Build and Rescue

Stormworks: Build and Rescue

Not enough ratings
LCD Auto Pilot Daughterboard Microcontroller
   
Award
Favorite
Favorited
Unfavorite
Vehicles: Sea, Mechanical
Tags: v0.10.13
File Size
Posted
Updated
68.823 KB
20 May, 2019 @ 7:08am
10 Apr, 2020 @ 8:32pm
10 Change Notes ( view )

Subscribe to download
LCD Auto Pilot Daughterboard Microcontroller

Description
Aedificate Co. presents an autopilot control system. It's not a full autopilot system however, and will not function on its own. However, it brings a unique feature that we haven't seen on many AP systems.

The script will display general information fed through from the mainboard controller such as:
• bearing,
• ETA in hours, minutes and seconds,
• Distance from target automatically converted to kilometers,

Embedded Heading Hold
The daughterboard has one embedded autopilot function called "heading hold." When enabled, the controller will maintain the entered heading (a value from 0-360). Please note that while the heading hold can turn the boat around, it is advised that you activate the heading hold when closest to the desired heading for the best results; activating when far from the desired heading can cause the boat to turn past the heading at first for a few seconds before correcting. The heading hold can function standalone from the mainboard as all required inputs are independent form mainboard functions.

WARNING: HEADING HOLD PID WILL TURN THE SHIP LEFT IF THE HEADING DIPS BELOW 0 TO 359- DESPITE RIGHT BEING THE CORRECT DIRECTION TO TURN. THE OPPOSITE OCCURS WHEN THE HEADING HOLD IS SET CLOSE TO 359 AND IT DIPS OVER TO 0.

AP Panic Mode
The script features a fairly convenient AP Panic mode. When triggered, the system rejects mainboard AP functions and attempts to stop the vessel before colliding with an object. It will send a negative throttle value in an attempt to reverse the propulsion until the speed reaches zero. This works well with systems that can accept negative throttle such as water jet propulsion.

If your vessel uses a direct throttle to a diesel engine, we recommend disabling the reverse throttle feature via the toggle, or alternatively you can use a threshold to automatically engage a reversing gearbox (and be sure to add an absolute gate).

Designed for [4x3] Fully configurable GPS Autopilot by Tajin
Daughterboards: Autopilot Course Selector Daughterboard

Considered features:
• Heading PID failover condition where it resets the PID state when it's still at max rudder output and has reached the set heading

Known issues:
• Heading holds close to 0 or 360 will be problematic for the heading hold PID.
12 Comments
Peekofwar  [author] 1 Aug, 2024 @ 7:18pm 
neigh
WeirdoFace 31 Jul, 2024 @ 8:54pm 
meow =3
Peekofwar  [author] 27 Mar, 2024 @ 6:36pm 
@Buddha Box
Did you connect a compass? I believe it requires its own compass input. Also, do note that it has an issue with headings at 0 or too close to 0.
Buddha Box 19 Mar, 2024 @ 7:37pm 
Hi there, thanks for making your boards, they're great stuff and the only way I've been able to get this kind of system working! One issue I have though is that heading hold refuses to lock on. When I turn it on, nothing happens at all :( AP is fine however. Any suggestions?
Peekofwar  [author] 11 Apr, 2020 @ 9:58am 
You would probably have to disconnect the heading hold from the rudder control... But it probably would work. It's a PID I believe right at the top of the logic.

You might need to play with the PID a little. I barely know how those work.
AXEL_X 11 Apr, 2020 @ 1:34am 
one more thing, is there a way that i can apapt this for the heading hold work has a speed hold?
AXEL_X 11 Apr, 2020 @ 1:34am 
hooo much better, thank youu so much!!
Peekofwar  [author] 10 Apr, 2020 @ 8:47pm 
Also, just added up-to-date screenshots.
Peekofwar  [author] 10 Apr, 2020 @ 8:33pm 
I thought I had changed the color scheme... Apparently I just forgot to push the update... or an update... The default scheme is now white text on black background.

To answer your question, look for function col(i) in the two LUA scripts that handle UI. This is where you can change the colors.
AXEL_X 10 Apr, 2020 @ 9:55am 
can you tell me where is the screen color and the text color? the green theme really doesnt feet on my yacht but i really want to use the mc