The invention relates to a control system for controlling a wheelchair having movable parts. The control system comprises a controller and a number of actuators for effectuating movements of the movable parts. The controller comprises a mathematical model of the kinematics of the movable parts and their respective at least one actuator, means for receiving an input signal from one or more of the actuators, and means for setting, based on the mathematical model, limiting positions of the actuators in response to the determined input signal. The invention also relates to a corresponding wheelchair and method of controlling a wheelchair.