Changeset 4383 in ntrip
- Timestamp:
- Jul 4, 2012, 3:13:53 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/rtcm3torinex/lib/rtcm3torinex.c
r4374 r4383 1195 1195 start = PRN_GLONASS_START; 1196 1196 } 1197 1198 for(i = 0; i < RTCM3_MSM_NUMSAT; ++i) 1199 extsat[i] = 15; 1197 1200 1198 1201 switch(sys) … … 1464 1467 gnss->measdata[num][cd.typeR] = psr[count]*LIGHTSPEED/1000.0 1465 1468 +(rrmod[numsat])*LIGHTSPEED/1000.0; 1466 gnss->dataflags[num] |= (1 <<cd.typeR);1469 gnss->dataflags[num] |= (1LL<<cd.typeR); 1467 1470 } 1468 1471 break; … … 1477 1480 handle->lastlockmsm[j][i] = ll[count]; 1478 1481 } 1479 gnss->dataflags[num] |= (1 <<cd.typeP);1482 gnss->dataflags[num] |= (1LL<<cd.typeP); 1480 1483 } 1481 1484 break; … … 1485 1488 gnss->measdata[num][cd.typeR] = psr[count]*LIGHTSPEED/1000.0 1486 1489 +(rrmod[numsat])*LIGHTSPEED/1000.0; 1487 gnss->dataflags[num] |= (1 <<cd.typeR);1490 gnss->dataflags[num] |= (1LL<<cd.typeR); 1488 1491 } 1489 1492 … … 1497 1500 handle->lastlockmsm[j][i] = ll[count]; 1498 1501 } 1499 gnss->dataflags[num] |= (1 <<cd.typeP);1502 gnss->dataflags[num] |= (1LL<<cd.typeP); 1500 1503 } 1501 1504 break; … … 1505 1508 gnss->measdata[num][cd.typeR] = psr[count]*LIGHTSPEED/1000.0 1506 1509 +(rrmod[numsat]+rrint[numsat])*LIGHTSPEED/1000.0; 1507 gnss->dataflags[num] |= (1 <<cd.typeR);1510 gnss->dataflags[num] |= (1LL<<cd.typeR); 1508 1511 } 1509 1512 … … 1517 1520 handle->lastlockmsm[j][i] = ll[count]; 1518 1521 } 1519 gnss->dataflags[num] |= (1 <<cd.typeP);1522 gnss->dataflags[num] |= (1LL<<cd.typeP); 1520 1523 } 1521 1524 1522 1525 gnss->measdata[num][cd.typeS] = cnr[count]; 1523 gnss->dataflags[num] |= (1 <<cd.typeS);1526 gnss->dataflags[num] |= (1LL<<cd.typeS); 1524 1527 break; 1525 1528 case 5: … … 1528 1531 gnss->measdata[num][cd.typeR] = psr[count]*LIGHTSPEED/1000.0 1529 1532 +(rrmod[numsat]+rrint[numsat])*LIGHTSPEED/1000.0; 1530 gnss->dataflags[num] |= (1 <<cd.typeR);1533 gnss->dataflags[num] |= (1LL<<cd.typeR); 1531 1534 } 1532 1535 … … 1540 1543 handle->lastlockmsm[j][i] = ll[count]; 1541 1544 } 1542 gnss->dataflags[num] |= (1 <<cd.typeP);1545 gnss->dataflags[num] |= (1LL<<cd.typeP); 1543 1546 } 1544 1547 … … 1550 1553 gnss->measdata[num][cd.typeD] = -(dop[count] 1551 1554 +rdop[numsat])/wl; 1552 gnss->dataflags[num] |= (1 <<cd.typeD);1555 gnss->dataflags[num] |= (1LL<<cd.typeD); 1553 1556 } 1554 1557 break; … … 1558 1561 gnss->measdata[num][cd.typeR] = psr[count]*LIGHTSPEED/1000.0 1559 1562 +(rrmod[numsat]+rrint[numsat])*LIGHTSPEED/1000.0; 1560 gnss->dataflags[num] |= (1 <<cd.typeR);1563 gnss->dataflags[num] |= (1LL<<cd.typeR); 1561 1564 } 1562 1565 … … 1570 1573 handle->lastlockmsm[j][i] = ll[count]; 1571 1574 } 1572 gnss->dataflags[num] |= (1 <<cd.typeP);1575 gnss->dataflags[num] |= (1LL<<cd.typeP); 1573 1576 } 1574 1577 1575 1578 gnss->measdata[num][cd.typeS] = cnr[count]; 1576 gnss->dataflags[num] |= (1 <<cd.typeS);1579 gnss->dataflags[num] |= (1LL<<cd.typeS); 1577 1580 break; 1578 1581 case 7: … … 1581 1584 gnss->measdata[num][cd.typeR] = psr[count]*LIGHTSPEED/1000.0 1582 1585 +(rrmod[numsat]+rrint[numsat])*LIGHTSPEED/1000.0; 1583 gnss->dataflags[num] |= (1 <<cd.typeR);1586 gnss->dataflags[num] |= (1LL<<cd.typeR); 1584 1587 } 1585 1588 … … 1593 1596 handle->lastlockmsm[j][i] = ll[count]; 1594 1597 } 1595 gnss->dataflags[num] |= (1 <<cd.typeP);1598 gnss->dataflags[num] |= (1LL<<cd.typeP); 1596 1599 } 1597 1600 1598 1601 gnss->measdata[num][cd.typeS] = cnr[count]; 1599 gnss->dataflags[num] |= (1 <<cd.typeS);1602 gnss->dataflags[num] |= (1LL<<cd.typeS); 1600 1603 1601 1604 if(dop[count] > -1.6384) … … 1603 1606 gnss->measdata[num][cd.typeD] = -(dop[count] 1604 1607 +rdop[numsat])/wl; 1605 gnss->dataflags[num] |= (1 <<cd.typeD);1608 gnss->dataflags[num] |= (1LL<<cd.typeD); 1606 1609 } 1607 1610 break; … … 1966 1969 CHECKFLAGSNEW(GPS, D5, D5) 1967 1970 CHECKFLAGSNEW(GPS, S5, S5) 1968 CHECKFLAGSNEW(GPS, P2, C2 P)1969 CHECKFLAGSNEW(GPS, L2P, L2 P)1970 CHECKFLAGSNEW(GPS, D2P, D2 P)1971 CHECKFLAGSNEW(GPS, S2P, S2 P)1972 CHECKFLAGSNEW(GPS, C2, C2 X)1973 CHECKFLAGSNEW(GPS, L2C, L2 X)1974 CHECKFLAGSNEW(GPS, D2C, D2 X)1975 CHECKFLAGSNEW(GPS, S2C, S2 X)1971 CHECKFLAGSNEW(GPS, P2, C2W) 1972 CHECKFLAGSNEW(GPS, L2P, L2W) 1973 CHECKFLAGSNEW(GPS, D2P, D2W) 1974 CHECKFLAGSNEW(GPS, S2P, S2W) 1975 CHECKFLAGSNEW(GPS, C2, C2) 1976 CHECKFLAGSNEW(GPS, L2C, L2) 1977 CHECKFLAGSNEW(GPS, D2C, D2) 1978 CHECKFLAGSNEW(GPS, S2C, S2) 1976 1979 CHECKFLAGSNEW(GPS, C1N, C1) 1977 1980 CHECKFLAGSNEW(GPS, L1N, L1) … … 2556 2559 for(j = 0; j < Parser->info[RTCM3_MSM_GLONASS].numtypes; ++j) 2557 2560 { 2558 intdf = Parser->info[RTCM3_MSM_GLONASS].flags[j];2561 long long df = Parser->info[RTCM3_MSM_GLONASS].flags[j]; 2559 2562 int pos = Parser->info[RTCM3_MSM_GLONASS].pos[j]; 2560 2563 if((Parser->Data.dataflags[i] & df) … … 2593 2596 for(j = 0; j < Parser->info[RTCM3_MSM_GALILEO].numtypes; ++j) 2594 2597 { 2595 intdf = Parser->info[RTCM3_MSM_GALILEO].flags[j];2598 long long df = Parser->info[RTCM3_MSM_GALILEO].flags[j]; 2596 2599 int pos = Parser->info[RTCM3_MSM_GALILEO].pos[j]; 2597 2600 if((Parser->Data.dataflags[i] & df) … … 2648 2651 for(j = 0; j < Parser->info[RTCM3_MSM_COMPASS].numtypes; ++j) 2649 2652 { 2650 intdf = Parser->info[RTCM3_MSM_COMPASS].flags[j];2653 long long df = Parser->info[RTCM3_MSM_COMPASS].flags[j]; 2651 2654 int pos = Parser->info[RTCM3_MSM_COMPASS].pos[j]; 2652 2655 if((Parser->Data.dataflags[i] & df) … … 2688 2691 for(j = 0; j < Parser->info[RTCM3_MSM_QZSS].numtypes; ++j) 2689 2692 { 2690 intdf = Parser->info[RTCM3_MSM_QZSS].flags[j];2693 long long df = Parser->info[RTCM3_MSM_QZSS].flags[j]; 2691 2694 int pos = Parser->info[RTCM3_MSM_QZSS].pos[j]; 2692 2695 if((Parser->Data.dataflags[i] & df) … … 2731 2734 for(j = 0; j < Parser->info[RTCM3_MSM_SBAS].numtypes; ++j) 2732 2735 { 2733 intdf = Parser->info[RTCM3_MSM_SBAS].flags[j];2736 long long df = Parser->info[RTCM3_MSM_SBAS].flags[j]; 2734 2737 int pos = Parser->info[RTCM3_MSM_SBAS].pos[j]; 2735 2738 if((Parser->Data.dataflags[i] & df) … … 2768 2771 for(j = 0; j < Parser->info[RTCM3_MSM_GPS].numtypes; ++j) 2769 2772 { 2770 intdf = Parser->info[RTCM3_MSM_GPS].flags[j];2773 long long df = Parser->info[RTCM3_MSM_GPS].flags[j]; 2771 2774 int pos = Parser->info[RTCM3_MSM_GPS].pos[j]; 2772 if((Parser->Data.dataflags[ pos] & df)2775 if((Parser->Data.dataflags[i] & df) 2773 2776 && !isnan(Parser->Data.measdata[i][pos]) 2774 2777 && !isinf(Parser->Data.measdata[i][pos]) … … 2892 2895 { 2893 2896 int v = 0; 2894 intdf = Parser->flags[j];2897 long long df = Parser->flags[j]; 2895 2898 int pos = Parser->pos[j]; 2896 2899 if((Parser->Data.dataflags[i] & df)
Note:
See TracChangeset
for help on using the changeset viewer.