Changeset 6609 in ntrip


Ignore:
Timestamp:
Feb 23, 2015, 3:42:12 PM (10 years ago)
Author:
stoecker
Message:

fix wrong factors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/rtcm3torinex/lib/rtcm3torinex.c

    r6606 r6609  
    460460        GETBITS(be->BDSweek, 13)
    461461        GETBITS(be->URAI, 4)
    462         GETFLOATSIGN(be->IDOT, 14, 1.0/(double)(1<<30)/(double)(1<<13))
     462        GETFLOATSIGN(be->IDOT, 14, PI/(double)(1<<30)/(double)(1<<13))
    463463        GETBITS(be->AODE, 5)
    464464        GETBITS(be->TOC, 17)
     
    469469        GETBITS(be->AODC, 5)
    470470        GETFLOATSIGN(be->Crs, 18, 1.0/(double)(1<<6))
    471         GETFLOATSIGN(be->Delta_n, 16, 1.0/(double)(1<<30)/(double)(1<<13))
    472         GETFLOATSIGN(be->M0, 32, 1.0/(double)(1<<30)/(double)(1<<1))
     471        GETFLOATSIGN(be->Delta_n, 16, PI/(double)(1<<30)/(double)(1<<13))
     472        GETFLOATSIGN(be->M0, 32, PI/(double)(1<<30)/(double)(1<<1))
    473473        GETFLOATSIGN(be->Cuc, 18, 1.0/(double)(1<<30)/(double)(1<<1))
    474474        GETFLOAT(be->e, 32, 1.0/(double)(1<<30)/(double)(1<<3))
     
    478478        be->TOE <<= 3;
    479479        GETFLOATSIGN(be->Cic, 18, 1.0/(double)(1<<30)/(double)(1<<1))
    480         GETFLOATSIGN(be->OMEGA0, 32, 1.0/(double)(1<<30)/(double)(1<<1))
     480        GETFLOATSIGN(be->OMEGA0, 32, PI/(double)(1<<30)/(double)(1<<1))
    481481        GETFLOATSIGN(be->Cis, 18, 1.0/(double)(1<<30)/(double)(1<<1))
    482         GETFLOATSIGN(be->i0, 32, 1.0/(double)(1<<30)/(double)(1<<1))
     482        GETFLOATSIGN(be->i0, 32, PI/(double)(1<<30)/(double)(1<<1))
    483483        GETFLOATSIGN(be->Crc, 18, 1.0/(double)(1<<8))
    484         GETFLOATSIGN(be->omega, 32, 1.0/(double)(1<<30)/(double)(1<<1))
    485         GETFLOATSIGN(be->OMEGADOT, 24, 1.0/(double)(1<<30)/(double)(1<<13))
    486         GETFLOATSIGN(be->TGD_B1_B3, 10, 0.000000001)
    487         GETFLOATSIGN(be->TGD_B2_B3, 10, 0.000000001)
     484        GETFLOATSIGN(be->omega, 32, PI/(double)(1<<30)/(double)(1<<1))
     485        GETFLOATSIGN(be->OMEGADOT, 24, PI/(double)(1<<30)/(double)(1<<13))
     486        GETFLOATSIGN(be->TGD_B1_B3, 10, 0.0000000001)
     487        GETFLOATSIGN(be->TGD_B2_B3, 10, 0.0000000001)
    488488        GETBITS(sv, 1)
    489489        if(sv)
Note: See TracChangeset for help on using the changeset viewer.