good spot Farinhir
When script runs a dive hydro check (o bearing) followed by a 90 deg starboard - hydro check then return to course.
This could be fixed by changing the "return to course" with a 90deg left turn and a set speed.
just delete lines:-
Return_to_course,0,0,0,0,0,0,5
Surface,0,0,0,0,0,0,5
and insert this:-
Set_new_course,-90,0,0,0,0,0,5
Surface,0,0,0,0,0,0,60
I will add a real nav search on patrol to v0.4