Switching between Digital and Analog control of pneumatic actuators position