code for sea-control-system (lower machine part)