View Ticket
Not logged in
Ticket Hash: 691b8ce2f6e3cc771861e77b3ade6c5b222ce2cf
Title: setting sensor rate
Status: Closed Type: Feature_Request
Severity: Minor Priority: Immediate
Subsystem: Resolution: Open
Last Modified: 2019-10-11 18:58:37
Version Found In:
User Comments:
john added on 2016-10-06 03:45:55:
It looks like it's possible to request a faster rate of sensor data:
https://developer.android.com/reference/android/hardware/Sensor.html

The accelerometer on my tablet appears to be sending data at about 10hz to 12hz, which is a bit slow for me to run an IIR filter on.

What I'd like is either:

a) an option to have Androwish receive for continuous sensor data and signal-processes it (in C), feeding the IIR processed data to me at the normal 10hz rate (this is my preference) so that the accelerometer is now much more useful.  This has the added benefit of being backward compatible and simply making existing Androwish apps that use the accelerometer work better.

b) a way to get much more sensor data.  Perhaps "borg sensor get" could optionally return a list of values so that I could get more data to feed into my own filter implementation 

c) a faster "<<SensorUpdate>>" rate (perhaps Continuous) but this might overwhelm tcl.

chw added on 2019-10-11 18:58:37:
I believe we meanwhile found a better solution thus close this ticket.