![]()
What is it?
It's a combination auto-throttle and autobrake for the following locomotives:
This autopilot is very much like cruise control, except that it also controls the brakes when active.
- WLD FS30-2
- DMM-512
- TEM2
Awesome! How do I use it?
Stuff to keep in mind:
- Download any of the following locomotives:
- Download the Locomotive Autopilot (this mod).
- Spawn the locomotive on some tracks.
- Install the autopilot in one of the following slots in the parts selector:
- WLD FS30-2: Install in the "Antenna" slot on the "Cab" part
- DMM-512: Install in the "Back Handles" slot on the "Back" part
- TEM2: Install in the "Window Wipers" slot on the "Cab" part
- Assign a control/key to toggle the autopilot in Options-->Controls-->Vehicle Specific.
- In the Tuning menu, set the desired cruise speed. You should set this to the maximum speed that the locomotive can reliably negotiate the tightest corner on the selected track without derailing.
- Toggle the autopilot on. The locomotive will achieve then maintain its cruise speed +/- 1 mph on flat land, uphill, and downhill.
- When the autopilot is deactivated, it will immediately stop manipulating the controls. It will not bring the locomotive to a stop.
- The autobrake is not a safety feature. It is solely for maintaining cruise speed downhill. If presented with an obstacle, the autopilot will plow through it. The autopilot will even throttle up in response to the additional drag provided by any struck obstacles that the locomotive is now pushing.
- If you do decide to tinker with the PID control coefficients (an interesting learning experience), you can load the "Generic Graph (Simple)" UI app to show the error in the control system over time. It's handy when tuning the coefficients. The default coefficients were obtained when tuning with just the locomotive. It's entirely possible that slightly adjusted coefficients might work better when actually towing cargo. PID tuning guides can be found by searching for "PID tuning" in your favorite search engine. If not, then try a different search engine. The functions below are used to tune the PID controller be sure the locomotive vehicle lua is selected when entering the functions in the debug console window command line:
- controller.getController("HighBeam9000_TrainAutopilot").getPIDs()
- controller.getController("HighBeam9000_TrainAutopilot").setThrottleP()
- controller.getController("HighBeam9000_TrainAutopilot").setThrottleI()
- controller.getController("HighBeam9000_TrainAutopilot").setThrottleD()
- controller.getController("HighBeam9000_TrainAutopilot").setBrakeP()
- controller.getController("HighBeam9000_TrainAutopilot").setBrakeI()
- controller.getController("HighBeam9000_TrainAutopilot").setBrakeD()
Dismiss Notice
In the upcoming weeks mod approvals could be slower than normal.
Thank you for your patience.
In the upcoming weeks mod approvals could be slower than normal.
Thank you for your patience.

Experimental Locomotive Autopilot 0.2
Supports WLD FS30-2, DMM-512, and TEM2