+ if (three_axis) {
+ cal_data.set_imu_type(imu_type);
+ double accel_along = cal_data.accel_along(-accel);
+ double accel_across = cal_data.accel_across(adxl375.accel_across());
+ double accel_through = cal_data.accel_through(adxl375.accel_through());
+ listener.set_accel_ground(accel_along,
+ accel_across,
+ accel_through);
+ listener.set_accel(accel_along,
+ accel_across,
+ accel_through);
+ }