Skip to content

Commit

Permalink
Added display-update to charging and docking state to make the displa…
Browse files Browse the repository at this point in the history
…y show the correct information all the time.
  • Loading branch information
latisen authored and sm6yvr committed Jul 14, 2017
1 parent 1ffa842 commit cd73229
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Liam/Liam.ino
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,8 @@ void loop() {

//----------------------- DOCKING -----------------------------
case DOCKING:

Battery.updateSOC();
Display.update();
//Make the wheel motors extra responsive
leftMotor.setSmoothness(10);
rightMotor.setSmoothness(10);
Expand Down Expand Up @@ -460,6 +461,8 @@ void loop() {

//----------------------- CHARGING ----------------------------
case CHARGING:
Battery.updateSOC();
Display.update();
// restore wheelmotor smoothness
leftMotor.setSmoothness(WHEELMOTOR_SMOOTHNESS);
rightMotor.setSmoothness(WHEELMOTOR_SMOOTHNESS);
Expand Down

0 comments on commit cd73229

Please sign in to comment.