From 355df18983cc4954dfde82df201c9c3140eaca75 Mon Sep 17 00:00:00 2001 From: dan Date: Fri, 28 Jul 2023 13:28:34 +0200 Subject: [PATCH] fix gui, disable mosfet during AC --- ip-rot.ino | 40 +++++++++++++++++++++------------------- 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/ip-rot.ino b/ip-rot.ino index 7172ea4..963bd97 100644 --- a/ip-rot.ino +++ b/ip-rot.ino @@ -111,7 +111,7 @@ Použití knihovny Wire ve verzi 2.0.0 v adresáři: /home/dan/Arduino/hardware/ */ //------------------------------------------------------------------------------------------------------- -const char* REV = "20230725"; +const char* REV = "20230728"; // #define CN3A // fix ip float NoEndstopHighZone = 0; @@ -1892,6 +1892,7 @@ void RunByStatus(){ } }else{ //AC + ledcWrite(mosfetPWMChannel, 0); if(Reverse==false){ // CCW digitalWrite(ACcwPin, LOW); digitalWrite(ReversePin, HIGH); @@ -1937,6 +1938,7 @@ void RunByStatus(){ } }else{ //AC + ledcWrite(mosfetPWMChannel, 0); if(Reverse==false){ // CW digitalWrite(ACcwPin, HIGH); digitalWrite(ReversePin, LOW); @@ -4701,7 +4703,7 @@ if(PWMenable==true){ HtmlSrc += NET_ID; HtmlSrc +="'>"; HtmlSrc += rotidERR; - HtmlSrc +="?1-2 chars
Multiple rotators with the same TOPIC must have different IDs
Second part of MQTT topic
\n?[1-2 chars]
Multiple rotators with the same TOPIC must have different IDs
Second part of MQTT topic
\n"; HtmlSrc += rotnameERR; @@ -4709,20 +4711,20 @@ if(PWMenable==true){ HtmlSrc += StartAzimuth; HtmlSrc +="'>° "; HtmlSrc += startazimuthERR; - HtmlSrc +="?Allowed range
0-359°
\n?Allowed range
[0-359°]
\n° "; HtmlSrc += maxrotatedegreeERR; - HtmlSrc +="\n?Range from CCW to CW endstop in degrees\n"; HtmlSrc += mapurlERR; - HtmlSrc +="?DXCC generated every quarter hour is available at https://remoteqth.com/xplanet/. If you need another, please contact OK1HRA. Available list\n"; + HtmlSrc +="?DXCC generated every quarter hour is available at https://remoteqth.com/xplanet/. If you need another, please contact OK1HRA, or run own services. Available list\n"; HtmlSrc +="° "; HtmlSrc += antradiationangleERR; - HtmlSrc +="?Allowed range
1-180°
\n"; + HtmlSrc +="?Allowed range
[1-180°]
\n"; HtmlSrc +=" .  . "; HtmlSrc +=""; HtmlSrc += mqttERR; - HtmlSrc +="?Default public broker 54.38.157.134
If first digit zero, MQTT disable
\n"; + HtmlSrc +="?Default public broker 54.38.157.134
If the first digit is zero, MQTT is disabled
\n"; HtmlSrc +=""; HtmlSrc +="\n"; @@ -4837,7 +4839,7 @@ if(PWMenable==true){ HtmlSrc +="?Default public broker port 1883\n"; HtmlSrc +="  "; - HtmlSrc +=""; + HtmlSrc +=""; HtmlSrc +="\n"; // HtmlSrc +="\n"; @@ -5004,11 +5006,11 @@ void handleCal() { if( AZsource == false && AZtwoWire == true && CwRaw < 1577 ){ HtmlSrc +="Recommendation: If you are using a 2 wire potentiometer less than 500Ω,
you can increase the sensitivity if you short the J16 jumper on the back side PCB.

"; } - HtmlSrc +="Instruction:
• If azimuth potentiometer shows opposite values, activate reverse button
• Rotate to both CCW "; + HtmlSrc +="Instruction:
• If azimuth potentiometer move opposite direction (CCW left and CW right),
activate REVERSE-AZIMUTH button
• Rotate to both CCW "; HtmlSrc +=StartAzimuth; HtmlSrc +="° and CW "; HtmlSrc +=StartAzimuth+MaxRotateDegree; - HtmlSrc +="° ends and save new limits
• After calibrate rotate to full CCW limits, measure real azimuth
and put this value to “Start CCW azimuth:” field in Setup page"; + HtmlSrc +="° ends and save new limits
• After calibrate rotate to full CCW limits, then measure real azimuth
and put this value to “Start CCW azimuth:” field in Setup page"; HtmlSrc +=""; HtmlSrc +="";