[chronojump] RaceAnalyzer. Increased precission in	get_calibration_factor.
- From: Xavier Padullés <xpadulles src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [chronojump] RaceAnalyzer. Increased precission in	get_calibration_factor.
- Date: Thu,  2 May 2019 14:42:20 +0000 (UTC)
commit d2d89d38bbfaa6cf6952b198e6569cda5a3e3a9b
Author: Xavier Padullés <x padulles gmail com>
Date:   Thu May 2 16:40:23 2019 +0200
    RaceAnalyzer. Increased precission in get_calibration_factor.
 arduino/raceAnalyzer/raceAnalyzer.ino | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/arduino/raceAnalyzer/raceAnalyzer.ino b/arduino/raceAnalyzer/raceAnalyzer.ino
index 9bd2ca20..30e372e1 100644
--- a/arduino/raceAnalyzer/raceAnalyzer.ino
+++ b/arduino/raceAnalyzer/raceAnalyzer.ino
@@ -45,7 +45,8 @@ void setup() {
   loadCell.begin();
   loadCell.setGain(GAIN_ONE);
   //tare();
-  EEPROM.get(offsetAddress, offset);;
+  EEPROM.get(offsetAddress, offset);
+  EEPROM.get(calibrationAddress, calibrationFactor);
   //EEPROM.get(ppsAddress, pps);
   //Using the rising flank of the A photocell we have a 200 PPR.
   attachInterrupt(digitalPinToInterrupt(encoderPinA), changingA, RISING);
@@ -341,5 +342,5 @@ void get_offset(void)
 
 void get_calibration_factor(void)
 {
-  Serial.println(calibrationFactor);
+  Serial.println(calibrationFactor, 8);
 }
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]