fixed calibration for variable number of joints