Tater's Auto Pilot With Line Hold
A new Era in Autopilot systems.
This is a very basic, but very powerful autopilot.
Instead of just pointing the nose of your vehicle in the directions of the waypoint, instead it draws an imaginary line from Your current location to the waypoint.
It then calculates your deviation and keeps your vehicle on its intended course.
No more getting blown off course by nasty wind.
No more wasting fuel because you ended up driving an extra 20km because your autopilot zig zagged.
This one should keep you right on the money for the most part.
Use is easy.
Bring the MC into your creation hook up all the nodes
Throttle 2 is optional, if you have dual engines or similar, and you want to control them individually, you can still do that. But if you only have 1 engine, just use throttle 1
GPS Target X is keypad A
GPS Target Y is keypad B
Enable needs to be a toggle button.
and set path should be a "push button" - or you can use the output on the keypad. Your choice
The rest is self explanatory.
Once you have everything hooked up.
Put your coordinates into the keypad, and press the set path button, this draws the imaginary line your vehicle will follow. Then turn it on by pushing enable.
If you turn the system off, and drive away, then reenable it, it will drive back to the line it first drew. Make sure you set path if you are trying to make a new path.
It also has a few settings if you click on the controller for slowing down speed and radius as well as stop radius.
Feel free to use it in your creation, However, drop a link back to this page. Do not reupload the microcontroller, the lua script, or any modification of either. Things like this take a long time to make, don't "steal" other people's hard work.
My Discord - [url=https://steamcommunity.com/linkfilter/?u=http%3A%2F%2Fdiscord.gg%2FwaudXjQmFE]discord.gg/waudXjQmFE[/url]
Update -
had a couple errors in code - those have been fixed - (notified by t_weezy)
added a rudder invert toggle in the MC Select Menu