Smoothing a ship's vertical motion with th control of flps and T-foil