Changeset 6610 in ntrip for trunk/rtcm3torinex


Ignore:
Timestamp:
Feb 23, 2015, 4:32:14 PM (5 years ago)
Author:
stoecker
Message:

fix wrong factors

File:
1 edited

Legend:

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

    r6609 r6610  
    457457
    458458        GETBITS(sv, 6)
    459         be->satellite += PRN_BDS_START-1;
     459        be->satellite = sv+PRN_BDS_START-1;
    460460        GETBITS(be->BDSweek, 13)
    461461        GETBITS(be->URAI, 4)
    462         GETFLOATSIGN(be->IDOT, 14, PI/(double)(1<<30)/(double)(1<<13))
     462        GETFLOATSIGN(be->IDOT, 14, R2R_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, PI/(double)(1<<30)/(double)(1<<13))
    472         GETFLOATSIGN(be->M0, 32, PI/(double)(1<<30)/(double)(1<<1))
     471        GETFLOATSIGN(be->Delta_n, 16, R2R_PI/(double)(1<<30)/(double)(1<<13))
     472        GETFLOATSIGN(be->M0, 32, R2R_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, PI/(double)(1<<30)/(double)(1<<1))
     480        GETFLOATSIGN(be->OMEGA0, 32, R2R_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, PI/(double)(1<<30)/(double)(1<<1))
    483         GETFLOATSIGN(be->Crc, 18, 1.0/(double)(1<<8))
    484         GETFLOATSIGN(be->omega, 32, PI/(double)(1<<30)/(double)(1<<1))
    485         GETFLOATSIGN(be->OMEGADOT, 24, PI/(double)(1<<30)/(double)(1<<13))
     482        GETFLOATSIGN(be->i0, 32, R2R_PI/(double)(1<<30)/(double)(1<<1))
     483        GETFLOATSIGN(be->Crc, 18, 1.0/(double)(1<<6))
     484        GETFLOATSIGN(be->omega, 32, R2R_PI/(double)(1<<30)/(double)(1<<1))
     485        GETFLOATSIGN(be->OMEGADOT, 24, R2R_PI/(double)(1<<30)/(double)(1<<13))
    486486        GETFLOATSIGN(be->TGD_B1_B3, 10, 0.0000000001)
    487487        GETFLOATSIGN(be->TGD_B2_B3, 10, 0.0000000001)
Note: See TracChangeset for help on using the changeset viewer.