gaowenliang / imu_utils

A ROS package tool to analyze the IMU performance.
https://gaowenliang.github.io/imu_utils
MIT License
1.45k stars 479 forks source link

Unit of raw data input #20

Closed EmiyaEstelle closed 4 years ago

EmiyaEstelle commented 4 years ago

Hi, thanks for your works about IMU random errorss calibration with Allan variance. I have something not understood about the unit of input raw data. I see the codes supporting 3 type of units such as RadPerSec, DegreePerSec and MPerSec2. However, I see the push data functions are shown in:

void
imu::AllanGyr::pushRadPerSec( double data, double time )
{
    m_rawData.push_back( GyrData( data * 57.3 * 3600, time ) );
    numData++;
}

void
imu::AllanGyr::pushDegreePerSec( double data, double time )
{
    m_rawData.push_back( GyrData( data * 3600, time ) );
    numData++;
}

void
imu::AllanGyr::pushDegreePerHou( double data, double time )
{
    m_rawData.push_back( GyrData( data, time ) );
    numData++;
}

It seems to be default that the imuput data is in degree/h unit. Does it give users some misunderstanding? Thanks