Create calibration.c

Old calibration code. Will be rewritten but may act as a sudo-placeholder / temporary stand-in for now