Change anglvel sampling rate to 800Hz and allow gyroscope and accelerometer to be two distinct iio devices

This commit is contained in:
Denis 2023-11-26 23:44:39 +01:00
parent 993e093363
commit aa35b0da02
No known key found for this signature in database
GPG key ID: DD9B63F805CF5C03
6 changed files with 70 additions and 27 deletions

View file

@ -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;