I'm using the sensors to balance a robot, but SENSOR_DELAY_FASTEST
only provides a 10Hz sampling rate, which is simply not fast enough. Is there a way of sampling even faster?
Is there a way of polling the sensors rather than waiting for a SensorEvent
?
Is there a way of sampling even faster?
SENSOR_DELAY_FASTEST
is a 0ms delay. You cannot have negative time, at least as far as physicists have determined. Hence, there is no "faster" delay than SENSOR_DELAY_FASTEST
.
Use Traceview to determine where your time is being taken up. It is possible that it is your code that is slowing down your processing.
a way of polling the sensors rather than waiting for a SensorEvent ?
No, sorry.