WIP PSI selector

This commit is contained in:
jLynx 2022-03-24 16:10:55 +13:00
parent 1c81c7a8ba
commit 0523aabe91
2 changed files with 21 additions and 0 deletions

View File

@ -142,6 +142,7 @@ TPMSAppView::TPMSAppView(NavigationView&) {
&field_rf_amp,
&field_lna,
&field_vga,
&options_type,
&recent_entries_view,
});
@ -160,6 +161,17 @@ TPMSAppView::TPMSAppView(NavigationView&) {
};
options_band.set_by_value(target_frequency());
options_type.on_change = [this](size_t, int32_t i) {
if (i == 0){
// field_frequency.set_value(144390000);
}
if(i == 1){
// field_frequency.set_value(144800000);
}
};
options_type.set_selected_index(0, true);
logger = std::make_unique<TPMSLogger>();
if( logger ) {
logger->append(u"tpms.txt");

View File

@ -138,6 +138,15 @@ private:
}
};
OptionsField options_type {
{ 5 * 8, 0 * 16 },
3,
{
{ "kPa", 0 },
{ "PSI", 1 }
}
};
RFAmpField field_rf_amp {
{ 13 * 8, 0 * 16 }
};