An autopilot for BeagleBone (Black) based robots