Skip to content

Commit

Permalink
Missing directives for Sempu BB
Browse files Browse the repository at this point in the history
  • Loading branch information
jenkie committed Oct 31, 2017
1 parent 56128dd commit 0838a2f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion Arduino_Pedelec_Controller/display.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1129,7 +1129,6 @@ static void display_nokia_view_human()
lcd.print(MY_F(" CAD "));
lcd.print(cad);
lcd.print(MY_F(" "));
#if defined(SUPPORT_XCELL_RT) //show left bar with human and battery wh
lcd.setCursor(3,3); //print human power centered
lcd.print(MY_F(" W ")); lcd.print(power_human,0);
lcd.print(MY_F(" "));
Expand Down
2 changes: 1 addition & 1 deletion Arduino_Pedelec_Controller/switches.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ void action_set_soft_poti(int new_throttle_stat)

{
#if CONTROL_MODE == CONTROL_MODE_TORQUE //human power control mode
#ifdef SUPPORT_XCELL_RT
#if defined(SUPPORT_XCELL_RT) || defined(SUPPORT_SEMPU)
buffer[9]='%';
power_poti = poti_stat/1023.0* curr_power_poti_max; //power_poti_max is in this control mode interpreted as percentage. Example: power_poti_max=200 means; motor power = 200% of human power
#endif
Expand Down

0 comments on commit 0838a2f

Please sign in to comment.