kentaylor / AvocadoAC

Inspired by Chris Smith's project this application does classification differently, logs classifications in a local database and maintains an online repository of activities.
https://github.com/kentaylor/ContextApi/wiki/Classification-Update
5 stars 5 forks source link

Do calibration only after uncarried is detected. #16

Closed jungoo8512 closed 13 years ago

jungoo8512 commented 14 years ago

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.

jungoo8512 commented 14 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,

kentaylor commented 14 years ago

Great.

kentaylor commented 13 years ago

Done.