The ballast and trim tanks control a ... Lastly, there's the trim tanks. Trim tanks work help orient a submarine to have an upward or downward angle, depending on whether its's diving or surfacing.