CMU-CREATE-Lab / flutter-app-android

5 stars 3 forks source link

Recording causes the sensor reading to freeze #204

Closed ehamner closed 7 years ago

ehamner commented 7 years ago

Recording causes the sensor reading to freeze until the sensor tab gets refreshed.

This could be related to #189 or it could be separate.


These are my notes from the testing I was doing:

Test 1: I wanted to test what happens if you record data with sensors paused. I Paused the sensors from the Sensor tab. Sensor one was displaying value 11. I went to the data tab to record data. I recorded 30 points / min for 2 min. As it was recording I went back to Sensors tab to see if it was still paused. The value was 37, then 0, then remained 0 and would not change. The Pause button was displaying "Pause Sensors". I went back to the Data tab and downloaded the log. Data recorded had changed values throughout as I changed the sensor input.

Test 2: I paused from Sensor tab with sensor reading value 40. Went to data page to set up recording, 30 points / min for 1 min. Went to the Sensors tab. The sensor value was not paused, button displayed "Pause Sensors". Displayed value 30 then 42 then stayed at 42 for several minutes as if it was frozen. Went to the Data tab, saw a quick dialog with spinner but could not read it. Went immediately back to the Sensors tab which now showed value 0 and was not frozen.

Test 3: I Paused sensors. Went to Data tab. Did nothing. Clicked back to Sensors tab. Sensors were not paused and did not freeze.