Title: Designing an automatic control system for a submarine