Closed gerowtj closed 3 years ago
Setting "EM7180_AlgorithmControl" to 0x00 re-starts SpacePoint the algorithm. The second call certainly isn't hurting anything. If you find the second call offensive, comment it out and see if it causes any malfunction...
Commenting out the line of code did not cause any issues, that I have detected.
In the EM7180_SENtral_Calibration/Teensy_ST_USFS_Baseline_Calibration_Utility_Acc_WS/EM7180.cpp program, lines 193 to 214:
the
I2C->writeByte(EM7180_ADDRESS, EM7180_AlgorithmControl, 0x00);
instruction is done twice, once after setting the BaroRate and then again after writing to the EnableEvents register.Is this required? Or can the write of 0x00 to the AlgorithmControl register be done once?
Also, the write to EnableEvents = 0x23 is done on line 202 and line 228, Is there a reason for this as well?
Thank you for your time! Tom