Commit d2d89d38 authored by Xavier Padullés's avatar Xavier Padullés

RaceAnalyzer. Increased precission in get_calibration_factor.

parent 5c9e5f66
...@@ -45,7 +45,8 @@ void setup() { ...@@ -45,7 +45,8 @@ void setup() {
loadCell.begin(); loadCell.begin();
loadCell.setGain(GAIN_ONE); loadCell.setGain(GAIN_ONE);
//tare(); //tare();
EEPROM.get(offsetAddress, offset);; EEPROM.get(offsetAddress, offset);
EEPROM.get(calibrationAddress, calibrationFactor);
//EEPROM.get(ppsAddress, pps); //EEPROM.get(ppsAddress, pps);
//Using the rising flank of the A photocell we have a 200 PPR. //Using the rising flank of the A photocell we have a 200 PPR.
attachInterrupt(digitalPinToInterrupt(encoderPinA), changingA, RISING); attachInterrupt(digitalPinToInterrupt(encoderPinA), changingA, RISING);
...@@ -341,5 +342,5 @@ void get_offset(void) ...@@ -341,5 +342,5 @@ void get_offset(void)
void get_calibration_factor(void) void get_calibration_factor(void)
{ {
Serial.println(calibrationFactor); Serial.println(calibrationFactor, 8);
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment