Changeset 11047 in ntrip for trunk/BNC/src/t_prn.cpp
- Timestamp:
- Sep 28, 2026, 11:17:34 AM (20 hours ago)
- File:
-
- 1 edited
-
trunk/BNC/src/t_prn.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/t_prn.cpp
r10791 r11047 53 53 ////////////////////////////////////////////////////////////////////////////// 54 54 int t_prn::toInt() const { 55 // Every per-satellite array (size MAXPRN+1) and every map keyed by t_prn 56 // (compared via operator unsigned) relies on this index. A number beyond 57 // its system's range - e.g. a 6-bit SSR satellite ID up to 63 - would 58 // otherwise silently map onto a satellite of the next system (G33 = R01) 59 // or beyond the arrays, so it is mapped to the unused index 0 instead. 60 unsigned maxNum = 0; 61 switch (_system) { 62 case 'G': maxNum = MAXPRN_GPS; break; 63 case 'R': maxNum = MAXPRN_GLONASS; break; 64 case 'E': maxNum = MAXPRN_GALILEO; break; 65 case 'J': maxNum = MAXPRN_QZSS; break; 66 case 'S': maxNum = MAXPRN_SBAS; break; 67 case 'C': maxNum = MAXPRN_BDS; break; 68 case 'I': maxNum = MAXPRN_NavIC; break; 69 } 70 if (_number < 1 || unsigned(_number) > maxNum) { 71 return 0; 72 } 55 73 if (_system == 'G') { 56 74 return _number;
Note:
See TracChangeset
for help on using the changeset viewer.
