1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-25 17:28:50 -05:00

Show phase angle in Pi units

This commit is contained in:
f4exb 2015-07-14 01:09:29 +02:00
parent 14d2c87518
commit b7a7f898bc
2 changed files with 3 additions and 3 deletions

View File

@ -627,12 +627,12 @@ void GLScope::applyConfig()
} else {
m_y1Scale.setRange(Unit::None, amp_ofs/2.0, amp_range + amp_ofs/2.0);
}
m_y2Scale.setRange(Unit::AngleDegrees, -180.0, 180.0);
m_y2Scale.setRange(Unit::None, -1.0, 1.0); // Scale to Pi
break;
}
case ModeMagdBPha: {
m_y1Scale.setRange(Unit::Decibel, pow_floor, pow_floor + pow_range);
m_y2Scale.setRange(Unit::AngleDegrees, -180.0, 180.0);
m_y2Scale.setRange(Unit::AngleDegrees, -1.0, 1.0); // Scale to Pi
break;
}
case ModeDerived12: {

View File

@ -183,7 +183,7 @@ void GLScopeGUI::setTrigLevelDisplay()
ui->trigText->setText(tr("%1dB").arg(m_triggerLevel - 100.0, 0, 'f', 0));
}
else if (m_triggerChannel == ScopeVis::TriggerPhase) {
ui->trigText->setText(tr("%1°").arg(m_triggerLevel * 1.8, 0, 'f', 0));
ui->trigText->setText(tr("%1π").arg(m_triggerLevel / 100.0, 0, 'f', 2));
}
else {
ui->trigText->setText(tr("%1").arg(m_triggerLevel / 100.0, 0, 'f', 2));