This document describes systems and methods for controlling an exoskeleton. The system receives a measurement of a first torque applied to a rotational joint coupling a first component to a second component, the first torque being applied by a motor via a cable. The system determines, based on the measurement of the first torque, a first portion of a second torque to apply to the rotational joint. The system determines, based on the measurement of the first torque, a second portion of the second torque to apply to the rotational joint. The system determines a value of the second torque to apply to the rotational joint based on the first portion and the second portion. The system controls the motor for applying the second torque to the rotational joint via the cable.