#include <spdlog/spdlog.h>
int main()
{
spdlog::set_level(spdlog::level::info);
spdlog::flush_on(spdlog::level::trace);
if (res < 0)
{
spdlog::error("Read settings failed with code: {}", res);
return -1;
}
int16_t gx, gy, gz, ax, ay, az;
if (res < 0)
{
spdlog::error("Get IMU offsets failed with code: {}", res);
return -1;
}
spdlog::info("IMU Offsets - Gx:{} Gy:{} Gz:{} Ax:{} Ay:{} Az:{}", gx, gy, gz, ax, ay, az);
return 0;
}
Shared helper utilities and common types used across the Doly SDK.
int8_t readSettings()
Read default settings from the platform settings file.
int8_t getImuOffsets(int16_t &gx, int16_t &gy, int16_t &gz, int16_t &ax, int16_t &ay, int16_t &az)
Retrieve IMU calibration offsets (gyro/accel).