Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hey Ollie!
Had some trouble to understand your PR (see ClemensElflein#97 (comment)), but because interested in the PR, I tried/tested it today.
Beside some minor simplification, I had the impression that the shutdown logic need to be changed (beside the fact that I changed from pitch_angle to tilt_angle).
I tested it with a WT901 and now it looks reasonable to me ;-) ... but there's a good chance that I miss-interpreted the reasoning of the PR at all ;-)
Can also test it with a MPU9250 the next days... but wanna hear you thoughts before ;-)
In addition I've the impression that we should trigger an emergency if the mower get tilted by IMU (probably only if ROS_running and !idle)