Control Software for Mechanical Systems: Object-Oriented Design in a Real-Time World