mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-01-11 23:39:29 -05:00
Add frequency correction to receiver screen (WIP).
This commit is contained in:
parent
3874c82d57
commit
fd9bb13157
@ -295,7 +295,12 @@ FrequencyOptionsView::FrequencyOptionsView(
|
|||||||
add_children({ {
|
add_children({ {
|
||||||
&text_step,
|
&text_step,
|
||||||
&options_step,
|
&options_step,
|
||||||
|
&text_correction,
|
||||||
|
&field_ppm,
|
||||||
|
&text_ppm,
|
||||||
} });
|
} });
|
||||||
|
|
||||||
|
field_ppm.set_value(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void FrequencyOptionsView::set_step(rf::Frequency f) {
|
void FrequencyOptionsView::set_step(rf::Frequency f) {
|
||||||
|
@ -283,6 +283,24 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
void on_step_changed(rf::Frequency v);
|
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 {
|
class RadioGainOptionsView : public View {
|
||||||
|
Loading…
Reference in New Issue
Block a user