/* Apply stored offset values to sensor reading. 
This function applies stored calibration offsets to the "input" vector of magnetometer values (the magnetic field vector) and returns the modified values. */
static void ak8975_apply_offset(vector3_t *input)
/* Apply stored offset values to sensor reading. 
This function applies stored calibration offsets to the "input" vector of magnetometer values (the magnetic field vector) and returns the modified values. */
static void ak8975_apply_offset(vector3_t *input)
{
	input->x -= calibrated_offsets.x;
	input->y -= calibrated_offsets.y;
	input->z -= calibrated_offsets.z;
}