[chronojump] Races encoder. Reset displacement on start capturing
- From: Xavier Padullés <xpadulles src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Races encoder. Reset displacement on start capturing
- Date: Fri, 13 Apr 2018 13:52:33 +0000 (UTC)
commit 918afe64df08388fa13ddcc34f6eaa50e6bb5629
Author: Xavier Padullés <x padulles gmail com>
Date: Fri Apr 13 15:51:21 2018 +0200
Races encoder. Reset displacement on start capturing
arduino/raceEncoder/raceEncoder.ino | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/arduino/raceEncoder/raceEncoder.ino b/arduino/raceEncoder/raceEncoder.ino
index dba139d..f27b53c 100644
--- a/arduino/raceEncoder/raceEncoder.ino
+++ b/arduino/raceEncoder/raceEncoder.ino
@@ -7,6 +7,7 @@ volatile unsigned long changingTime = 0;
unsigned long elapsedTime = 0;
unsigned long totalTime = 0;
unsigned long lastTime = 0;
+//int position = 0;
//Version of the firmware
String version = "Race_Encoder-0.1";
@@ -94,6 +95,7 @@ void start_capture()
totalTime = 0;
lastTime = micros();
capturing = true;
+ encoderDisplacement = 0;
}
void end_capture()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]