pypilot is a free software autopilot designed specifically for sailboats. pypilot can run on raspberry pi and varients.