Write safety controller test. #36
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Write a test for the safety flags:
Setup
Test
Flag Tests
ERR_FLAG_MEAS_ADC_WATCHDOG: manually reconfigure the Watchdog limits so they will trigger for sure.
ERR_FLAG_MEAS_ADC_UNSTABLE: Do not test
ERR_FLAG_MEAS_ADC_OVERFLOW: Do not test
ERR_FLAG_TIMING_MEAS_ADC: Manually rewrite ADC register, so the ADC is misconfigured
ERR_FLAG_MEAS_ADC_OFF: Disable the ADC measurement and reenable it.
ERR_FLAG_STACK: destroy stack corruption detection area
ERR_FLAG_SAFETY_ADC: Manually misconfigure safety ADC
All others flags are tested during development by manual debugger intervention.
Eval
Implement this after release of v1.0 It is not high priorit. the correct working of the safetxy controller will be ensured by testing it during development.