bug: motor test triggering on page load
Bug description
When opening pwm outputs in vehicle setup while the robot is armed, we get a flood of critical status_texts.
Steps to reproduce
- Run rover firmware
- Have the robot armed
- Observe status_text mavlink messages
- go to vehicle setup/pwm outputs:
/vehicle/setup/pwm_outputs - Observe flood of critical messages
Primary pain point(s)
A flood of critical messages is not great for our monitoring tools. I suspect we won't be able to actually run the motor tests (we don't use it, but still).
Additional context
Our autopilot firmware has some modifications, so its not impossible that this is not reproducible (sorry about that) with stock.
I suspect I might be hitting this piece of the new code, and its generating some critical status_text messages: https://github.com/bluerobotics/BlueOS/pull/3113
or perhaps: https://github.com/bluerobotics/BlueOS/pull/3122
MOTOR TEST: INVALID MOTOR (3) (and 4)
https://github.com/ArduPilot/ardupilot/blame/master/Rover/motor_test.cpp#L85
This might be our own doing, just wondering what the auto-set we are enabling. I didnt even run the motor test, I just opened the page vehicle/setup/pwm_outputs, and was flooded.
Prerequisites
- [x] I have checked to make sure that a similar request has not already been filed or fixed.
Update:
Our firmware seem to be at fault. A stock rover does not have the issue. Our rover has some additional motors. Once we fixed this, we got bigger issues, again, due to our modifications.
However, on the stock rover, we observed that the act of opening the page would trigger an Throttle armed of the robot, which was not expected. Arming seems like it should be a very explicit operation, and navigating to a page on the web UI seems to me potentially dangerous.
Maybe I should close this issue, and open one for accessing the page arming the robot instead?