Skip to content

Commit

Permalink
Comments added (not tested)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelMohn committed Mar 30, 2024
1 parent bdec7c8 commit b397118
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions Tests/Test_App_UpdateDisplay.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ void testTriStateComp(UpdateDisplayError_t(*function)(TriState_t)){
function(STATE_2); // DISP_ACTIVE & DISP_REVERSE

OSTimeDlyHMSM(0, 0, 0, 200, OS_OPT_TIME_HMSM_STRICT, &e);
function(STATE_0);
function(STATE_0); // DISP_DISABLED & DISP_NEUTRAL

OSTimeDlyHMSM(0, 0, 0, 200, OS_OPT_TIME_HMSM_STRICT, &e);
}
Expand Down Expand Up @@ -93,24 +93,28 @@ void Task1(void *arg)

OSTimeDlyHMSM(0, 0, 7, 0, OS_OPT_TIME_HMSM_STRICT, &e);

//Cycle through all gear settings
testTriStateComp(&UpdateDisplay_SetGear);


//Cycle through various velocities
UpdateDisplay_SetVelocity(12);

OSTimeDlyHMSM(0, 0, 0, 200, OS_OPT_TIME_HMSM_STRICT, &e);
UpdateDisplay_SetVelocity(345);

OSTimeDlyHMSM(0, 0, 0, 200, OS_OPT_TIME_HMSM_STRICT, &e);
UpdateDisplay_SetVelocity(6789);

OSTimeDlyHMSM(0, 0, 0, 200, OS_OPT_TIME_HMSM_STRICT, &e);

//Cycle through the tritium statuses
testTriStateComp(&UpdateDisplay_SetCruiseState);
testTriStateComp(&UpdateDisplay_SetRegenState);

//Set Boolean statuses
testBoolComp(&UpdateDisplay_SetMotor);
testBoolComp(&UpdateDisplay_SetArray);
testPercentageComp(&UpdateDisplay_SetSOC);

//Various Other Tests
testPercentageComp(&UpdateDisplay_SetSOC);
UpdateDisplay_SetSBPV(12);

OSTimeDlyHMSM(0, 0, 0, 200, OS_OPT_TIME_HMSM_STRICT, &e);
Expand All @@ -120,7 +124,6 @@ void Task1(void *arg)
UpdateDisplay_SetSBPV(6789);

OSTimeDlyHMSM(0, 0, 0, 200, OS_OPT_TIME_HMSM_STRICT, &e);

testPercentageComp(&UpdateDisplay_SetAccel);

Display_Error((error_code_t)error); // Testing Display_Error
Expand Down

0 comments on commit b397118

Please sign in to comment.