Change anglvel sampling rate to 800Hz and allow gyroscope and accelerometer to be two distinct iio devices
This commit is contained in:
parent
993e093363
commit
aa35b0da02
6 changed files with 70 additions and 27 deletions
|
|
@ -650,7 +650,7 @@ static int send_data(int fd, logic_t *const logic) {
|
|||
return gs_copy_res;
|
||||
}
|
||||
|
||||
const int64_t time_us = gs.last_motion_time.tv_sec * 1000000 + gs.last_motion_time.tv_usec;
|
||||
const int64_t time_us = gs.last_gyro_motion_time.tv_sec * 1000000 + gs.last_gyro_motion_time.tv_usec;
|
||||
|
||||
static uint32_t empty_reports = 0;
|
||||
static uint64_t last_time = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue