kopia lustrzana https://github.com/f4exb/sdrangel
Scope: fixed mag sq derivative scale display
rodzic
9307d7ad59
commit
f2db907677
|
@ -1893,7 +1893,6 @@ void GLScope::setYScale(ScaleEngine &scale, uint32_t highlightedTraceIndex)
|
|||
break;
|
||||
case Projector::ProjectionMagLin:
|
||||
case Projector::ProjectionMagSq:
|
||||
case Projector::ProjectionDMagSq:
|
||||
if (amp_range < 1e-9) {
|
||||
scale.setRange(Unit::None, amp_ofs * 1e12, amp_range * 1e12 + amp_ofs * 1e12);
|
||||
} else if (amp_range < 1e-6) {
|
||||
|
@ -1920,6 +1919,7 @@ void GLScope::setYScale(ScaleEngine &scale, uint32_t highlightedTraceIndex)
|
|||
// break;
|
||||
case Projector::ProjectionReal: // Linear generic
|
||||
case Projector::ProjectionImag:
|
||||
case Projector::ProjectionDMagSq:
|
||||
default:
|
||||
if (amp_range < 1e-9) {
|
||||
scale.setRange(Unit::None, -amp_range * 5e11 + amp_ofs * 1e12, amp_range * 5e11 + amp_ofs * 1e12);
|
||||
|
|
Ładowanie…
Reference in New Issue