Add frequency correction to receiver screen (WIP).

This commit is contained in:
Clayton Smith 2015-07-26 17:32:37 -04:00 committed by Jared Boone
parent 3874c82d57
commit fd9bb13157
2 changed files with 23 additions and 0 deletions

View File

@ -295,7 +295,12 @@ FrequencyOptionsView::FrequencyOptionsView(
add_children({ {
&text_step,
&options_step,
&text_correction,
&field_ppm,
&text_ppm,
} });
field_ppm.set_value(0);
}
void FrequencyOptionsView::set_step(rf::Frequency f) {

View File

@ -283,6 +283,24 @@ private:
};
void on_step_changed(rf::Frequency v);
Text text_correction {
{ 17 * 8, 0 * 16, 5 * 8, 16 },
"Corr.",
};
NumberField field_ppm {
{ 23 * 8, 0 * 16 },
3,
{ -99, 99 },
1,
'0',
};
Text text_ppm {
{ 27 * 8, 0 * 16, 3 * 8, 16 },
"PPM",
};
};
class RadioGainOptionsView : public View {