s3lsensor / snowfort

SnowFort: An open source wireless sensor network for infrastructure and environmental monitoring
http://www.snowfort.org
Other
6 stars 8 forks source link

add new functions to read acc and gyro samples from mpu_sample_all() #88

Closed yzliao closed 9 years ago

yzliao commented 9 years ago

Add new functions (mpu_get_acc() and mpu_get_gyro()) to get samples from the return of mpu_sample_all(). We can call mpu_read_acc() and mpu_read_gyro() twice but the samples may not be synced. These functions are better for the applications with restrict synchronization requirement.