How to use autopilot with wheeled vehicles

From Space Engineers Wiki
Jump to navigation Jump to search

You may want to use autopilot on a wheeled vehicle to transport cargo from the mines or ferry crew from the hangar to their quarters. You notice it doesn't work because the Remote Control's autopilot does not attempt to propel or turn wheels, it insists on using gyroscopes and thrusters like a space ship.

As a workaround, (either give up and build a hovercraft, or) use the wheel suspensions' Overrides to put the vehicle into a custom-made cruise control!

You can use the same Autopilot features in the Remote Control or in the Automaton AI Recorder to create your cruise control.

Add Gyroscopes

Tip: Add Gyroscopes to the vehicle to get the added benefit that the autopilot will use them to recover and level if the vehicle catches air during a jump.

Having the Autopilot turn a rover through gyroscopes somewhat works if you set the wheels to low friction and only drive on flat ground.

Set up propulsion override

Without thrusters, an autopiloted rover needs a Propulsion Override on its wheels to be able move towards the next waypoint. Alas the autopilot does not switch it on and off as needed, you need to set this up yourself.

Important: Remember to Invert Propulsion on the right side wheels while using the override.

Configure each waypoint to switch on/off the Propulsion Overrides and Brakes, or set up timers or sensors to have more control over when to toggle the overrides at waypoints to not overshoot. This requires some testing and depends on the environment.

  1. Drive along the path and record the waypoints at the exact same height as the Remote Control block will be during the trip.
  2. Make a control group for the wheels on the right side.
  3. Make a control group for all wheels.
  4. Build two Timer Blocks.
  5. Program the first Timer block to start driving:
    • Enable Increase Propulsion Override on all wheels, lower the friction on all wheels, enable Invert Propulsion on the right side, release the brakes, and start the Autopilot.
  6. Program the second Timer block to stop driving:
    • Enable Reset Propulsion Override on all wheels, increase the friction on all wheels, disable Invert Propulsion on the right side, hit the brakes, and stop the Autopilot.

Troubleshooting

To make waypoints visible, use the Show on HUD setting on the GPS screen for RC, or on the Info Screen for Automatons.

If the vehicle is empty with high clearance on one leg of the trip, and full with low clearance on the way back, the Remote Control block cannot "reach" the same waypoints. In contrast to a flying craft, a rover cannot simply "fly a little bit higher" to reach a waypoint, and it will stall trying.

Make it part of the last waypoints' actions after loading cargo to adjust the suspension height so the remote control is on the waypoint again. If that doesn't help, you have to record separate waypoint in loaded an unloaded state.

Watch Halipatsui's video with some great tips: Guide for using RC Block with Rovers.