Some work on the accel calibration algorhitm. Still does not work.