StephenBlackWasAlreadyTaken / xDrip

Android Application that collects dex signals, allows calibrations, and uploads
GNU General Public License v3.0
208 stars 176 forks source link

filtered vs unfiltered precision / offset #124

Closed kenstack closed 8 years ago

kenstack commented 8 years ago

using the released version of xdrip (not beta) to upload from the g4 share receiver. Android 5.1. Seeing a bias offset between dexcom and raw. this is from the pebble endpoint - look at filtered - seems like its an integer with only 2 digits of precision. And the unfiltered vallue is floating. Sorry if this is an old issue I saw similar issues posted but not exactly - it started after a new sensor start. Prior sensor was fine - both are floating point numbers and were close

{"status":[{"now":1450674489127}],"bgs":[{"sgv":"93","trend":4,"direction":"Flat","datetime":1450674153744,"filtered":110000,"unfiltered":149621.9175466009,"noise":1,"bgdelta":-8,"battery":"88"},{"sgv":"101","trend":4,"direction":"Flat","datetime":1450673853227,"filtered":109000,"unfiltered":148390.09377192982,"noise":1},{"sgv":"98","trend":4,"direction":"Flat","datetime":1450673552857,"filtered":109000,"unfiltered":145830.84276315788,"noise":1},{"sgv":"91","trend":4,"direction":"Flat","datetime":1450673253209,"filtered":110000,"unfiltered":144594.64081140351,"noise":1},{"sgv":"91","trend":4,"direction":"Flat","datetime":1450672952841,"filtered":111000,"unfiltered":144684.3889254386,"noise":1},{"sgv":"92","trend":4,"direction":"Flat","datetime":1450672653493,"filtered":110000,"unfiltered":146102.03256578947,"noise":1},{"sgv":"92","trend":4,"direction":"Flat","datetime":1450672352865,"filtered":107000,"unfiltered":146192.68245614035,"noise":1},{"sgv":"92","trend":4,"direction":"Flat","datetime":1450672052986,"filtered":103000,"unfiltered":144953.26007401315,"noise":1},{"sgv":"90","trend":4,"direction":"Flat","datetime":1450671752998,"filtered":99000,"unfiltered":142381.5571299342,"noise":1},{"sgv":"83","trend":4,"direction":"Flat","datetime":1450671452990,"filtered":98000,"unfiltered":135812.09715460526,"noise":1}],"cals":[{"slope":782,"intercept":27601,"scale":0.9755869978243028},{"slope":824,"intercept":29259,"scale":1}]}

kenstack commented 8 years ago

Upgraded to latest beta issue resolved