Closed rhaschke closed 2 years ago
I think the mode in the error message refers to RobotMode
. I added a corresponding field to allow for reporting that mode.
Thanks for your PR. This should make the error message much clearer. I added an additional message for the mode "other" that suggests to open the brakes
Replace multiple occurrences of identical error messages with a function. Ideally, the current mode would be shown there as well, i.e.
command rejected: command not possible in the current mode (reflex)!
However, I didn't find the corresponding mode member immediately - there are so many similar mode members!