Handled By : @i-sachinkumar
- Android NDK library in C++, providing device’s motion sensors data
- Header only ibrary
- Super easy to Implement, handle, and extend
Get it from here
AccelerationEventQueue accelerationEventQueue; //ACCELEROMETER
GyroscopeEventQueue gyroscopeEventQueue; //GYROSCOPE
void enableAll() {
accelerationEventQueue.enableSensor(ASENSOR_TYPE_ACCELEROMETER);
gyroscopeEventQueue.enableSensor(ASENSOR_TYPE_GYROSCOPE);
}
void disableAll(){
accelerationEventQueue.disableSensor();
gyroscopeEventQueue.disableSensor();
}
bool isRecording = false;
while (isRecording) {
//LOG("data given below")
accelerationEventQueue.val[0]
accelerationEventQueue.val[1]
accelerationEventQueue.val[2]
gyroscopeEventQueue.val[0]
gyroscopeEventQueue.val[1]
gyroscopeEventQueue.val[2]
}
Contributions are always welcome!
See contributing.md
for ways to get started.
Please adhere to this project's code of conduct
.