Muss ein Laufzeitproblem sein, bei einfachen Pfaden klappt es auch, sobald der Pathfinder nachdenken muss, geht es bei mir in die HoseWie es aussieht kann es aber auch ein Laufzeitproblem sein. Wenn der pathfinder arbeitet steht der roboter ja, eigentlich sollten die bools dann resetten, es sei denn sie lesen alte werte aus motor.cpp aus, die noch garnicht nach dem pathfinder durchgelaufen ist.
// should robot rotate?
bool robotShouldRotate(){
if ((fabs(motor.linearSpeedSet) < MOTOR_MIN_SPEED/2) && (((fabs(motor.angularSpeedSet))/PI*180.0) > 2.5)) return (true);//MrTree changed to deg/s (returned true before if angularspeedset > 0.57deg/s), reduced linearSpeedSet condition
else {
stateDeltaSpeedLP = 0; //MrTree reset measurement
diffIMUWheelYawSpeed = 0; //MrTree reset measurement
diffIMUWheelYawSpeedLP = 0; //MrTree reset measurement
return (false);
}
}
Nope my robot doesn’t do that, it just stays and then throw an errorDoes that mean the robot is turning while computing the path finding?
That is indeed an issue, beside it´s not turning in the process.Does that mean the robot is turning while computing the path finding?
Timesteps size is hardcoded in StateEstimator, here for example:
![]()
Sunray/sunray/StateEstimator.cpp at 160d39b22c33cca61071d4e5fd7b87a48251bfdb · Ardumower/Sunray
Ardumower Sunray. Contribute to Ardumower/Sunray development by creating an account on GitHub.github.com
Changing that 0.02 for the actual time delta might fix it.

Eigentlich ist es easy, aber der Teufel Steckt wie immer im DetailAber vllt schon, ich weiß es nicht. Habe noch nie in die Alfred config.h und die ganzen Dateien reingeschaut ...