gaowenliang/imu_utils

Unit of raw data input

EmiyaEstelle opened this issue · 0 comments

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