Discussion Regarding Triangular Calibration

That appears to me how the current routine works. Take a look at it.