New magnetometer and accelerometer code, fixed paths in CCS.
Merge remote-tracking branch 'origin/fred' into fred