...
Validation Steps | Status | Blockers | |||||||
---|---|---|---|---|---|---|---|---|---|
PCA |
|
| |||||||
Buttons |
|
| |||||||
7-Seg Display |
|
| |||||||
Indicators | 5 LED indicators, along with buttons working |
|
Drive FSM Validation
Info |
---|
Each test will be named and their outcome listed. Each success test (green) means that the transition should occur while each fail test means that the transition should fail |
Drive Tests | Verified? | Inputs | CAN Inputs/Button Presses | Outputs | CAN Outputs | Notes | |||||
---|---|---|---|---|---|---|---|---|---|---|---|
Neutral Start | Success |
|
|
cansend can0 066#02
power_state_main_flag set internally, starting value is 0 | Neutral button light → ON |
Drive output: drive_state: | ||||||
Neutral → Drive | Success |
|
| cansend can0 066#02
Click Drive button cansend can0 484#00 - will set speed to 0 |
Drive button light → ON Neutral button light → OFF | Drive output: drive_state: | Will return to neutral if Drive state does not receive power FSM state within three cycles | |||||
Drive → Neutral | Success |
|
| Will happen automatically if CAN message isn't sent |
Drive button light → OFF Neutral button light → ON | Drive output: drive_state: | ||||||
| cansend can0 066#0102
|
Drive button light → OFF Neutral button light → ON | Drive output: drive_state: | ||||||||
| cansend can0 066#00
|
Drive button light → OFF Neutral button light → ON | Drive output: drive_state: | ||||||||
| Click Neutral button cansend can0 484#00 - will set speed to 0 |
Drive button light → OFF Neutral button light → ON | Drive output: drive_state: | ||||||||
Neutral → Reverse | Success |
|
| cansend can0 066#02
Click Reverse button cansend can0 484#00 - will set speed to 0 |
Reverse button light → ON Neutral button light → OFF | Drive output: drive_state: | Will return to neutral if Reverse state does not receive power FSM state within three cycles | |||||
Reverse → Neutral | Success |
|
| Will happen automatically if CAN message isn't sent |
Reverse button light → OFF Neutral button light → ON | Drive output: drive_state: | ||||||
| cansend can0 066#0102
|
Reverse button light → OFF Neutral button light → ON | Drive output: drive_state: | ||||||||
| cansend can0 066#00
|
Reverse button light → OFF Neutral button light → ON | Drive output: drive_state: | ||||||||
| Click Neutral button cansend can0 484#00 - will set speed to 0 |
Reverse button light → OFF Neutral button light → ON | Drive output: drive_state: | ||||||||
Neutral → Drive | Fail |
|
| cansend can0 066#0102
Click Drive button | Should stay in Neutral | Drive output: drive_state: | ||||||
| cansend can0 066#00
Click Drive button | Should stay in Neutral | Drive output: drive_state: | ||||||||
| Don’t send any can messages Click Drive button | Should stay in Neutral | Drive output: drive_state: | ||||||||
| cansend can0 484#FF7FFF7F - set large speed Click Drive button | Should stay in Neutral | Drive output: drive_state: | ||||||||
Drive → Neutral | Fail |
|
| cansend can0 484#FF7FFF7F - set large speed Click Neutral button | Should not transition to Neutral when Neutral button is pressed | Drive output: drive_state: | ||||||
Neutral → Reverse | Fail |
|
| cansend can0 066#0102
Click Reverse button | Should stay in Neutral | Drive output: drive_state: | ||||||
| cansend can0 066#00
Click Reverse button | Should stay in Neutral | Drive output: drive_state: | ||||||||
| Don’t send any can messages Click Reverse button | Should stay in Neutral | Drive output: drive_state: | ||||||||
| cansend can0 484#FF7FFF7F - set large speed Click Reverse button | Should stay in Neutral | Drive output: drive_state: | ||||||||
Reverse → Neutral | Fail |
|
| cansend can0 484#FF7FFF7F - set large speed Click Neutral button | Should not transition to Neutral when Neutral button is pressed | Drive output: drive_state: | ||||||
Drive ↔︎ Reverse | Fail |
|
OR
| Click Drive button OR Click Reverse button | Should not transition | There is no transition defined for Reverse → Drive or Drive → Reverse |
...