[chronojump] RaceAnalyzer. Removed hardcoded offset
- From: Xavier Padullés <xpadulles src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] RaceAnalyzer. Removed hardcoded offset
- Date: Fri, 29 Mar 2019 11:10:35 +0000 (UTC)
commit 773158674508439b04e161dc919f4b0a6083220f
Author: Xavier Padullés <x padulles gmail com>
Date: Fri Mar 29 12:07:49 2019 +0100
RaceAnalyzer. Removed hardcoded offset
r-scripts/sprintEncoder.R | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/r-scripts/sprintEncoder.R b/r-scripts/sprintEncoder.R
index 8c27e635..de6915f2 100644
--- a/r-scripts/sprintEncoder.R
+++ b/r-scripts/sprintEncoder.R
@@ -62,7 +62,7 @@ getSprintFromEncoder <- function(filename, testLength, Mass, Temperature = 25, H
raceAnalyzer = read.csv2(file = filename, sep = ";")
colnames(raceAnalyzer) = c("displacement", "time", "force")
- raceAnalyzer$force = (raceAnalyzer$force + 13544) * 0.2 /2 #TODO: Implement the calibration factor
comming from the arduino
+ raceAnalyzer$force = (raceAnalyzer$force) * 0.175806451613 /2 #TODO: Implement the calibration
factor comming from the arduino
totalTime = raceAnalyzer$time/1E6 #Converting microseconds to seconds
elapsedTime = diff(c(0,totalTime)) #The elapsed time between each sample
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]