From bfc43443b44eeb52a774b2130cab2b0145634997 Mon Sep 17 00:00:00 2001 From: mattbk Date: Fri, 1 Sep 2023 14:15:54 -0500 Subject: [PATCH] Clarify some things. --- vulpes/src/main.cpp | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/vulpes/src/main.cpp b/vulpes/src/main.cpp index 6fbb5e6..0dc2bf3 100644 --- a/vulpes/src/main.cpp +++ b/vulpes/src/main.cpp @@ -61,24 +61,24 @@ const char index_html[] PROGMEM = R"rawliteral(
inputString (current value %inputString%):
- Sending program (cycle doesn't work yet) (current %inputSend%): + Sending program (cycle doesn't work yet) (current value: %inputSend%):
- Message (current %inputMsg%): + Message (current value %inputMsg%):
- + WPM (current value %inputWPM%): (doesn't work yet)
inputFloat (current value %inputFloat%):
@@ -262,8 +262,8 @@ class MorseEffect : public jled::BrightnessEvaluator { // Speed is milliseconds per dit, which is 1000 * (60 / (50 * WPM)) // 60 is 20 wpm, 120 is 10 wpm, 90 is 15 wpm, etc. // https://morsecode.world/international/timing.html -int wpm = 10; -int ms_per_dit = 120; //1000 * (60 / (50 * wpm)); +float wpm = 10; +float ms_per_dit = 1000 * (60 / (50 * wpm)); int word_space_ms = ms_per_dit * 7; // Hardcoding these for now, will come back and make it more flexible. MorseEffect morseEffectCQ("CQ CQ CQ DE W1CDN", ms_per_dit); @@ -446,7 +446,7 @@ void loop() { // See which message we are sending // Only do this when the message has been updated. if(yourInputMsg != yourInputMsg_old){ - morseToSend.Stop(JLed::eStopMode::FULL_OFF).Update(); + //morseToSend.Stop(JLed::eStopMode::FULL_OFF).Update(); if(yourInputMsg == 0){ morseToSend = morseCQ; } else if(yourInputMsg == 1){