mc_pos_control: unused variables removed