Start logging a filter never returns a message
config.quaternionFilter.startLoggingAsync().success({ (obj) in
checkIfComplete(index,1);
}).failure({ (error) in
checkIfComplete(index,-1);
})
where quaternionFilter is a filter defined in the sensor persistent connection as:
quaternionFilter = device.sensorFusion!.quaternion.periodicSample(ofEvent: 30)
I check if the configuration is valid before accessing so I don't think that is the issue. The problem is that I never receive a response in either the success block or failure block. If I check if the filter is logging after the call, it always reports true. However, when attempting to download the log files I don't get data back, as if it was not logging.
Do you have any idea why I may not be getting a response from the startLoggingAsync() call? Any help would be appreciated, thanks.
Comments
Is your board in a clean state when you run the code?