A hydraulic machine includes an undercarriage; a rotating structure rotatably mounted on the undercarriage and configured to rotate with and with respect to the undercarriage; a first controller configured to receive user input and configured; a user interface configured to accept commands from a user and output a command signal to the controller; and a first gyroscope fixed to the rotating structure and electrically connected to the controller and configured to provide a data signal of rotation information of the rotating structure to the controller. An axis of rotation of the gyroscope is parallel to the axis of rotation of the rotating structure. The controller is configured to generate a control signal to control the rotating structure and cause the rotating structure to rotate with respect to the undercarriage based on the command signal from the user interface and the data signal from the first gyroscope.