Calibration submission

Please, review the new submission of the calibration code:

calibration.c
rotation.c
calibration.h
test_calibration.c

all compiles on Mac OS X, except

make check 

that doesn't know what to do
*** No rule to make target `check'.  Stop.

So I couldn't run tests or I simply forgot how to do it right ;)