Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(bw): simplify navigation code #5269

Merged
merged 10 commits into from
Jul 27, 2024
Merged

chore(bw): simplify navigation code #5269

merged 10 commits into from
Jul 27, 2024

Conversation

philmoz
Copy link
Collaborator

@philmoz philmoz commented Jul 8, 2024

  • Add switch & source popup menus to 9x nav..
  • Add 'View note' / 'View channels' popup to x7 (from x9d).
  • Fix off by one errors.
  • Fix repeat movement not stopping at bottom of page (9x & xlite).
  • Unify and merge 9x & xlite navigation.
  • Unify and merge x7 & x9d navigation.
  • Move common code to navigation.cpp

@philmoz philmoz added this to the 2.11 milestone Jul 8, 2024
@philmoz philmoz added UX-UI Related to user experience (UX) or user interface (UI) behaviour B&W Related generally to black and white LCD radios labels Jul 8, 2024
@pfeerick pfeerick changed the title chore(b&w): simplify navigation code chore(bw): simplify navigation code Jul 8, 2024
@raphaelcoeffic raphaelcoeffic requested a review from 3djc July 8, 2024 11:37
@3djc
Copy link
Collaborator

3djc commented Jul 9, 2024

Will try to review this in the coming days

@philmoz philmoz force-pushed the philmoz/bw-nav-cleanup branch from dc03118 to 9163061 Compare July 13, 2024 05:35
@3djc
Copy link
Collaborator

3djc commented Jul 13, 2024

x7 nav (tested on MT12)
Place yourself in drive mode
old: you enter the next screen as soon as you click
this; you enter the next screen only on release, only on short clicks, and since short need to be really short, I get stuck
seems a general behavior since the same happens on G1 once view is entered

same comment for page up/down, you need to succeed a short click, if not, it does nothing

@philmoz
Copy link
Collaborator Author

philmoz commented Jul 15, 2024

I see no difference between current main and this PR.
The changes you describe are from PR #4849

@3djc
Copy link
Collaborator

3djc commented Jul 15, 2024

Bit odd since my reference MT12 runs a firmware done on July 9th. Anyhow this change is irritating :(

@philmoz philmoz force-pushed the philmoz/bw-nav-cleanup branch from 9163061 to 2ba910f Compare July 18, 2024 22:55
@philmoz
Copy link
Collaborator Author

philmoz commented Jul 18, 2024

I have restored the BREAK after LONG key press.
Navigation that does not explicitly use the LONG press (and kill the BREAK event) will now trigger on a BREAK event.

This should restore the 2.10 navigation functionality.

@3djc does this work better for you on the MT12?

Copy link
Collaborator

@3djc 3djc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works for me in current state, thanks @philmoz

@philmoz philmoz force-pushed the philmoz/bw-nav-cleanup branch from 2ba910f to a57a14f Compare July 19, 2024 22:37
@pfeerick pfeerick self-requested a review July 22, 2024 09:34
@philmoz philmoz force-pushed the philmoz/bw-nav-cleanup branch from a57a14f to 83ca197 Compare July 25, 2024 23:56
@pfeerick pfeerick added the house keeping 🧹 Cleanup of code and house keeping label Jul 26, 2024
@philmoz philmoz force-pushed the philmoz/bw-nav-cleanup branch from 83ca197 to 4cfade9 Compare July 26, 2024 23:46
@pfeerick
Copy link
Member

bw128 (T20)

  • model_outputs - long press of ENTER for min or max to toggle between constant and GV results in inability to leave the page - have to power down the transmitter.
  • model_special_functions - pressing enter / long enter (for popup) to assign trigger for new SF works, but am unable to leave edit mode for that column.

bw212 (X9D+)

  • model_select - long press for popup menu not working.
  • model_outputs - long press of ENTER for subtrim, min or max to toggle between constant and GV results in inability to leave the page - have to power down the transmitter.
  • model_special_functions - pressing enter / long enter (for popup) to assign trigger for new SF works, but am unable to leave edit mode for that column.

@philmoz
Copy link
Collaborator Author

philmoz commented Jul 27, 2024

bw128 (T20)

  • model_outputs - long press of ENTER for min or max to toggle between constant and GV results in inability to leave the page - have to power down the transmitter.
  • model_special_functions - pressing enter / long enter (for popup) to assign trigger for new SF works, but am unable to leave edit mode for that column.

bw212 (X9D+)

  • model_select - long press for popup menu not working.
  • model_outputs - long press of ENTER for subtrim, min or max to toggle between constant and GV results in inability to leave the page - have to power down the transmitter.
  • model_special_functions - pressing enter / long enter (for popup) to assign trigger for new SF works, but am unable to leave edit mode for that column.

Thanks, should be fixed now.

@pfeerick
Copy link
Member

pfeerick commented Jul 27, 2024

bw212(x9d+) and bw128 (tx12) are both good now! :) Had a quick poke around the tlite interface also... and it seems to be working fine also. I had clearly forgotten how limited the UI was there though... i.e. x7 navigation is so much nicer with the popup menus and long press helpers!

@pfeerick pfeerick merged commit 0cc22c3 into main Jul 27, 2024
47 checks passed
@pfeerick pfeerick deleted the philmoz/bw-nav-cleanup branch July 27, 2024 22:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B&W Related generally to black and white LCD radios house keeping 🧹 Cleanup of code and house keeping UX-UI Related to user experience (UX) or user interface (UI) behaviour
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants