Our systems test is currently very qualitative and also kind of a nightmare to perform. Instead:
- Buttons in Elastic that will test one mechanism each. The first button will be an "enable system test" button that sets some state flag in the CoordinationLayer so that it stops trying to do its normal coordination tasks. Probably,
coordinateRobotActions should have a check at the start which, if the robot is in test mode and that flag has been set, it will call some other method (e.g. systemTestPeriodic) and return to cancel the rest of the functionality.
- Each mechanism's test will record:
- Time to setpoint
- Current draw at steady state
- Error after a certain timeout (if it never reaches setpoint)
- If any of these go outside of a "normal" threshold (we will define this in constants) it should report it, probably as an alert
Our systems test is currently very qualitative and also kind of a nightmare to perform. Instead:
coordinateRobotActionsshould have a check at the start which, if the robot is in test mode and that flag has been set, it will call some other method (e.g.systemTestPeriodic) and return to cancel the rest of the functionality.