From f258d7b13579291646e57314224085e200f4bab5 Mon Sep 17 00:00:00 2001 From: Jazmin Ferreiro Date: Mon, 24 Jan 2022 22:33:10 +0100 Subject: [PATCH] fix finger order --- lib/datacollection/storage.dart | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/datacollection/storage.dart b/lib/datacollection/storage.dart index 0850854..4772f2e 100644 --- a/lib/datacollection/storage.dart +++ b/lib/datacollection/storage.dart @@ -166,10 +166,11 @@ class SensorMeasurements { } List measurementList = []; measurementList.addAll(extractFingerMeasurement(gloveMeasurement.thumb)); - measurementList.addAll(extractFingerMeasurement(gloveMeasurement.pinky)); + measurementList.addAll(extractFingerMeasurement(gloveMeasurement.index)); measurementList.addAll(extractFingerMeasurement(gloveMeasurement.ring)); measurementList.addAll(extractFingerMeasurement(gloveMeasurement.middle)); - measurementList.addAll(extractFingerMeasurement(gloveMeasurement.index)); + measurementList.addAll(extractFingerMeasurement(gloveMeasurement.pinky)); + this.values.add(measurementList); this.timestamps.add(gloveMeasurement.timestampMillis); return true;