Closed jungoo8512 closed 13 years ago
Now it has a calibration after uncarried is detected and also it cancels the calibration if other activities are detected.
Used SSD = 0.1 Havent done waiting in "uncarried" state for 5minutes yet,
Great.
Done.
When we load the application assume a SD of 0.1 ms. Do the calibration once only. When we have detected uncarried for 5 minutes then use the next 10 minutes to acquire data for a SD calibration. That is do the logic for detecting uncarried but this time sample the full 128 samples each time and also add them to the sample to be used for calibration. If phone goes out of uncarried state throw away calibration data. Once we have 10 minutes of calibration data where the phone is uncarried for the whole time. Calculate the SD values.
This will avoid any special handling when the application is started the first time.