Skip to content

Commit

Permalink
disable accel bias untill fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
James Strawson committed Apr 11, 2018
1 parent 91a7288 commit 6efa5b9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions library/src/mpu/mpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -2424,11 +2424,11 @@ int __load_accel_calibration()
raw[4] = (bias[2] >> 8) & 0xFF;
raw[5] = (bias[2]) & 0xFF;

// Push accel biases to hardware registers
if(rc_i2c_write_bytes(config.i2c_bus, XA_OFFSET_H, 6, &raw[0])){
fprintf(stderr,"ERROR: failed to write accel offsets into IMU register\n");
return -1;
}
// // Push accel biases to hardware registers
// if(rc_i2c_write_bytes(config.i2c_bus, XA_OFFSET_H, 6, &raw[0])){
// fprintf(stderr,"ERROR: failed to write accel offsets into IMU register\n");
// return -1;
// }
return 0;
}

Expand Down

0 comments on commit 6efa5b9

Please sign in to comment.