Gyro and ultrasonic sensor with only one servo

I am working on AC75 America Cup sailboat project. I need to control servo wing with gyro for vertical stability and with ultrasonic sensor to control hull distance from water. How can I do?
Thank for help. Marco