Microsoft Band Accelerometer update time interval cannot be changed (iOS SDK) -
how can control accelerometer update time interval on microsoftband (ios sdk)
microsoft band documentation says accelerometer frequency can changed, here screenshot documentation
to 3 hz, 62, 31, , 8 hz default update time 31hz, need change it
for example - iphone accelerometer time interval can changed cmmotionmanager().accelerometerupdateinterval = 0.01
what need have feature above on microsoftband, , change accelerometer frequency 1 of 62/31/8 hz
band.sensormanager.startaccelerometerupdatestoqueue(nsoperationqueue(), errorref: nil, withhandler: { (acceldata, er) -> void in let x = string(format: "%f",acceldata.x) let y = string(format: "%f",acceldata.y) let z = string(format: "%f",acceldata.z) var date: string { return "\(nsdate().timeintervalsince1970 * 1000)" } let str = "\(date), \(x), \(y), \(z) \n" self.updatemsbanddata(acceldata) })
at moment microsoft band sdk supplies single sampling rate stream on ios. can add feature requests future microsoft band sdk versions at: http://microsofthealth.uservoice.com/
Comments
Post a Comment