Bernard,Yes it's useless because mower shutdown with the delay .
müssen die #if define's in die pfod.cpp ?Jep compile is ok now.
Und jetzt ist Feierabend, ab ins Bett![]()
Sorry.I have to say that I'm lost if I read your thread... . Is there a change who has been done on my last downloaded programms or not ? Is this for an other optionned mower ?
Always fail to compile for DUE changing :Version 01.05.2022
and#define STANDARD true //choose normal code for one Perimetersensor
//#define FUERSTRUPRECHT true
#define DUE true //if you use DUE-CPU
//#define TEENSY true //if you use Teensy4.1-CPU
#define STANDARD true //if you are NOT Fürst Ruprecht
//#define FUERSTRUPRECHT true //if you are Fürst Ruprecht
Sascha,Yep just loaded it onto the teensy and the webserver onto the ESP32, seems to be ok at first look.
I'm looking around a bit to see what possibilities there are to make it a bit nicer (Design).
sehr gut, das wollte ich auch schon machen, bin aber noch nicht dazu gekommen.Oh, I completely overlooked that one. I will test it, I am currently trying to convert to html5 responsive.
void Robot::loop() {
stateTime = millis() - stateStartTime;
int steer;
if ((useMqtt) && (millis() > next_time_refresh_mqtt)) {
next_time_refresh_mqtt = millis() + 3000;
String line01 = "#RMSTA," + String(statusNames[statusCurr]) + "," + String(stateNames[stateCurr]) + "," + String(temperatureTeensy) + "," + String(batVoltage) + "," + String(loopsPerSec) ;
Serial1.println(line01);
}
case STATE_START_FROM_STATION: //when start in auto mode the mower first initialize the IMU and perimeter sender
motorSpeedMaxPwm = motorInitialSpeedMaxPwm ;
motorMowEnable = false; //mow motor start later when leave the perimeter wire
nextTimeToDmpAutoCalibration = millis() + delayBetweenTwoDmpAutocalib * 1000; //set the next time for calib
//readDHT22();
ShowMessageln("Start sender1");
line01 = "#SENDER," + String(area1_ip) + ",A1";
Serial1.println(line01);
ShowMessageln("Stop sender2");
line01 = "#SENDER," + String(area2_ip) + ",B0";
Serial1.println(line01);
ShowMessageln("Stop sender3");
line01 = "#SENDER," + String(area3_ip) + ",B0";
Serial1.println(line01);
setBeeper(600, 40, 5, 500, 0 );
MaxStateDuration = 6000; // 6 secondes beep and pause before rev
break;