@@ -1389,7 +1389,7 @@ void Plot::drawSky(QPainter &c, int level)
13891389 if (obs->P [j] == 0.0 && obs->L [j] == 0.0 )
13901390 s += " -- " ;
13911391 else
1392- s += QStringLiteral (" %1 " ).arg (obs->SNR [j] * SNR_UNIT , 2 , ' f' , 0 , QChar (' 0' ));
1392+ s += QStringLiteral (" %1 " ).arg (obs->SNR [j], 2 , ' f' , 0 , QChar (' 0' ));
13931393 }
13941394
13951395 // LLI
@@ -1412,7 +1412,7 @@ void Plot::drawSky(QPainter &c, int level)
14121412 if (obs->P [freq - 1 ] == 0.0 && obs->L [freq - 1 ] == 0.0 )
14131413 s += " ---- " ;
14141414 else
1415- s += QStringLiteral (" %1 " ).arg (obs->SNR [freq - 1 ] * SNR_UNIT , 4 , ' f' , 1 );
1415+ s += QStringLiteral (" %1 " ).arg (obs->SNR [freq - 1 ], 4 , ' f' , 1 );
14161416
14171417 // LLI
14181418 if (obs->L [freq-1 ] == 0.0 )
@@ -1434,7 +1434,7 @@ void Plot::drawSky(QPainter &c, int level)
14341434 if (obs->P [j] == 0.0 && obs->L [j] == 0.0 )
14351435 s += " ---- " ;
14361436 else
1437- s += QStringLiteral (" %1 " ).arg (obs->SNR [j] * SNR_UNIT , 4 , ' f' , 1 );
1437+ s += QStringLiteral (" %1 " ).arg (obs->SNR [j], 4 , ' f' , 1 );
14381438
14391439 // LLI
14401440 if (obs->L [j] == 0.0 )
@@ -1630,7 +1630,7 @@ void Plot::drawSky(QPainter &c, int level)
16301630 if (obs->P [j] == 0.0 && obs->L [j] == 0.0 )
16311631 s += " -- " ;
16321632 else
1633- s += QStringLiteral (" %1 " ).arg (obs->SNR [j] * SNR_UNIT , 2 , ' f' , 0 , QChar (' 0' ));
1633+ s += QStringLiteral (" %1 " ).arg (obs->SNR [j], 2 , ' f' , 0 , QChar (' 0' ));
16341634 }
16351635
16361636 // LLI
@@ -1653,7 +1653,7 @@ void Plot::drawSky(QPainter &c, int level)
16531653 if (obs->P [freq - 1 ] == 0.0 && obs->L [freq - 1 ] == 0.0 )
16541654 s += " ---- " ;
16551655 else
1656- s += QStringLiteral (" %1 " ).arg (obs->SNR [freq - 1 ] * SNR_UNIT , 4 , ' f' , 1 );
1656+ s += QStringLiteral (" %1 " ).arg (obs->SNR [freq - 1 ], 4 , ' f' , 1 );
16571657
16581658 // LLI
16591659 if (obs->L [freq-1 ] == 0.0 )
@@ -1675,7 +1675,7 @@ void Plot::drawSky(QPainter &c, int level)
16751675 if (obs->P [j] == 0.0 && obs->L [j] == 0.0 )
16761676 s += " ---- " ;
16771677 else
1678- s += QStringLiteral (" %1 " ).arg (obs->SNR [j] * SNR_UNIT , 4 , ' f' , 1 );
1678+ s += QStringLiteral (" %1 " ).arg (obs->SNR [j], 4 , ' f' , 1 );
16791679
16801680 // LLI
16811681 if (obs->L [j] == 0.0 )
@@ -1734,7 +1734,7 @@ void Plot::drawSolSky(QPainter &c, int level) {
17341734 if (satelliteMask[solstat->sat - 1 ] || !satelliteSelection[solstat->sat - 1 ]) continue ;
17351735 if (solstat->frq != frq || solstat->el <= 0 ) continue ;
17361736
1737- QColor col = snrColor (solstat->snr * SNR_UNIT );
1737+ QColor col = snrColor (solstat->snr );
17381738 // Include satellites with invalid data but note this in the color.
17391739 if ((solstat->flag & 0x20 ) == 0 ) col = plotOptDialog->getMarkerColor (0 , 7 );
17401740 // Check against elevation mask.
@@ -1845,7 +1845,7 @@ void Plot::drawSolSky(QPainter &c, int level) {
18451845 if (satelliteMask[solstat->sat - 1 ] || !satelliteSelection[solstat->sat - 1 ]) continue ;
18461846 if (solstat->frq != frq || solstat->el <= 0 ) continue ;
18471847
1848- QColor col = snrColor (solstat->snr * SNR_UNIT );
1848+ QColor col = snrColor (solstat->snr );
18491849 // Include satellites with invalid data but note this in the color.
18501850 if ((solstat->flag & 0x20 ) == 0 ) col = plotOptDialog->getMarkerColor (0 , 7 );
18511851 // Check against elevation mask.
@@ -2348,12 +2348,12 @@ void Plot::drawSnr(QPainter &c, int level)
23482348 }
23492349 if (idx >= NFREQ + NEXOBS) continue ;
23502350 }
2351- if (obs->SNR [idx] * SNR_UNIT <= 0.0 ) continue ; // skip negative SNR
2351+ if (obs->SNR [idx] <= 0.0 ) continue ; // skip negative SNR
23522352
23532353 // calculate position
23542354 x[n] = timePosition (obs->time );
23552355 if (panel == 0 ) { // SNR
2356- y[n] = obs->SNR [idx] * SNR_UNIT ;
2356+ y[n] = obs->SNR [idx];
23572357 col[n] = plotOptDialog->getMarkerColor (0 , 4 );
23582358 } else if (panel == 1 ) { // multipath
23592359 if (!multipath[idx] || multipath[idx][j] == 0.0 ) continue ;
@@ -2365,7 +2365,7 @@ void Plot::drawSnr(QPainter &c, int level)
23652365 if (simulatedObservation)
23662366 col[n] = sysColor (obs->sat );
23672367 else
2368- col[n] = snrColor (obs->SNR [idx] * SNR_UNIT );
2368+ col[n] = snrColor (obs->SNR [idx]);
23692369
23702370 if (elevation[j] > 0.0 && elevation[j] < plotOptDialog->getElevationMask () * D2R) col[n] = plotOptDialog->getMarkerColor (0 , 0 );
23712371 }
@@ -2546,10 +2546,10 @@ void Plot::drawSnrE(QPainter &c, int level)
25462546 }
25472547 if (idx >= NFREQ + NEXOBS) continue ;
25482548 }
2549- if (obs->SNR [idx] * SNR_UNIT <= 0.0 ) continue ;
2549+ if (obs->SNR [idx] <= 0.0 ) continue ;
25502550
25512551 x[0 ][n[0 ]] = x[1 ][n[1 ]] = elevation[j] * R2D;
2552- y[0 ][n[0 ]] = obs->SNR [idx] * SNR_UNIT ;
2552+ y[0 ][n[0 ]] = obs->SNR [idx];
25532553 y[1 ][n[1 ]] = !multipath[idx] ? 0.0 : multipath[idx][j];
25542554
25552555 col[0 ][n[0 ]] = col[1 ][n[1 ]] = (elevation[j] > 0.0 && elevation[j] < plotOptDialog->getElevationMask () * D2R) ?\
@@ -2945,7 +2945,7 @@ void Plot::drawResidual(QPainter &c, int level)
29452945 y[0 ][m[0 ]] = solstat->resp ;
29462946 y[1 ][m[1 ]] = solstat->resc ;
29472947 y[2 ][m[2 ]] = solstat->el * R2D;
2948- y[3 ][m[3 ]] = solstat->snr * SNR_UNIT ;
2948+ y[3 ][m[3 ]] = solstat->snr ;
29492949
29502950 if (!(solstat->flag >> 5 )) q = 0 ; // invalid
29512951 else if ((solstat->flag & 7 ) <= 1 ) q = 2 ; // float
0 commit comments