-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dock when rain detected and only dock when mowing #72
Conversation
Looks good to me, is this ready for merge / tested, or still draft? @Apehaenger have you tested this by any chance? I have seen some rain related sounds in your sound PR ;-) Can you please add the new config option to the example config.sh |
I'm sorry, have had it on my own test & merge list, but had trouble last year with my GPS. So: Not tested by me yet. |
No problem, I'll also do a testing session soon. |
IIRC this was working very reliably on my c500 last year. |
Log the docking reason. Add option to dock when rain is detected. Initial logic is very basic, just dock when rain detected and if automatic mode is set will stay docked until rain is no longer detected.
@@ -474,6 +506,7 @@ void checkSafety(const ros::TimerEvent &timer_event) { | |||
currentBehavior != &DockingBehavior::INSTANCE && | |||
currentBehavior != &UndockingBehavior::RETRY_INSTANCE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missed this in a rebase, should be:
dockingNeeded &&
currentBehavior != &DockingBehavior::INSTANCE &&
currentBehavior != &UndockingBehavior::RETRY_INSTANCE &&
currentBehavior != &IdleBehavior::INSTANCE &&
currentBehavior != &UndockingBehavior::INSTANCE &&
currentBehavior != &AreaRecordingBehavior::INSTANCE
@Apehaenger re 1, could it have been just that it wasn't getting rain=true constantly for 20s? |
Yes indeed. I tested with a SA type mower. It doesn't has that plate-like rain sensor like the C500. It has a flat and sloping rain sensor. I triggered the rain with a watering-can and once I heard her singing "It's raining again", I stopped watering the sensor. However, it recognize the rain, drives to the end of his current path (not area) and then goes back to his dock. In principle it works well (for my normal/small area) |
Re-implemented in #148 |
Log the docking reason.
Only dock when mowing, otherwise can abort DockingBehavior.
Add option to dock when rain is detected.
Initial logic is very basic, just dock when rain detected and if automatic mode is set will stay docked until rain is no longer detected.