#define BUMPER_DEADTIME

I guess you translated it from English?

I guess the Bumper deadtime is the time after a bumper trigger event until the bumper is enabled again. This is to prevent a multiple trigger of the bumper.

I hope I am right?!

Thank you and best regards,
Chris
 
BUMPER_DEADTIME is probably not activated in latest sunray releases and can be ignored in configuration....
No, i am wrong XD themanfrommoon is absolutely right.

if ( (millis() > linearMotionStartTime + BUMPER_DEADTIME) && (bumper.obstacle()) ){
CONSOLE.println("bumper obstacle!");
statMowBumperCounter++;
triggerObstacle();
return true;
}

After a motion starttime, Bumper is allowed to trigger again after you add the BUMPER_DEADTIME to the linearMotionStartTime
 
Zuletzt bearbeitet:
Oben