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

Add option to auto-select Koch lesson after symbol is keyed correctly multiple times in a row #46

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

JosePadron
Copy link

@JosePadron JosePadron commented Oct 22, 2021

Related to #45

  • Add new menu.
  • Add logic for auto-select new Koch lesson.
  • Bench test.

@@ -73,7 +73,8 @@ const String menuText [menuN] = {
"Wifi Select", //40


"Go To Sleep" } ; // 41
"Go To Sleep", // 41
"Auto Selection" } ; // 42 Koch
Copy link
Author

Choose a reason for hiding this comment

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

New menu string to select max number of times a symbol should be keyed correctly before moving to next lesson.

Copy link
Author

Choose a reason for hiding this comment

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

I put new menu and strings at the end to avoid shifting everything

@@ -120,7 +121,8 @@ const uint8_t menuNav [menuN] [5] = { // { level, left, right,
{1,_wifi_check,_wifi_update,_wifi,0}, // 38 Upload File
{1,_wifi_upload,_wifi_select,_wifi,0}, // 39 Update Firmware
{1,_wifi_update,_wifi_mac,_wifi,0}, // 40 Select network
{0,_wifi,_keyer,_dummy,0} // 41 goto sleep
{0,_wifi,_keyer,_dummy,0}, // 41 goto sleep
{1,_kochEcho,_kochSel,_koch,0}, // 42 koch Auto select check 16
Copy link
Author

Choose a reason for hiding this comment

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

New menu between Echo and Select Lesson

@@ -105,7 +105,8 @@ Preferences pref; // use the Preferences library for storing and r
uint8_t MorsePreferences::snapShots = 0; // keep track which snapshots are being used ( 0 .. 7, called 1 to 8)

uint8_t MorsePreferences::boardVersion = 0; // which Morserino board version? v3 uses heltec Wifi Lora V2, V4 uses V2.1


uint8_t MorsePreferences::okKeyingMaxCount = 0; // Max number of correct keying before moving to next lesson
Copy link
Author

Choose a reason for hiding this comment

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

Default to disable.

@@ -855,6 +858,10 @@ boolean MorsePreferences::adjustKeyerPreference(prefPos pos) { /// rotati
internal::displayKochFilter();
break;

case posKochAutoSel: MorsePreferences::okKeyingMaxCount = constrain(MorsePreferences::okKeyingMaxCount + t, 0, 100);
Copy link
Author

Choose a reason for hiding this comment

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

Range form 0 to 100.

@JosePadron JosePadron changed the title Add option to auto-select Koch lesson Add option to auto-select Koch lesson after symbol is keyed correctly multiple times in a row Oct 22, 2021
@oe1wkl
Copy link
Owner

oe1wkl commented Oct 23, 2021

Jose, this will require some testing before I can commit it.

@JosePadron
Copy link
Author

Jose, this will require some testing before I can commit it.

I understand. Let me know if you need anything else from me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants