Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: Accelerometer LCD Inverter Algorithm MotorDriver Anemometer GUI ArduinoJson Misc Definitions Pushbutton WebSocketClient temp_fan
Revision 32:7b58f5574b7a, committed 2021-04-04
- Comitter:
- khaiminhvn
- Date:
- Sun Apr 04 18:50:41 2021 +0000
- Parent:
- 31:300dd6d7e5d5
- Child:
- 33:e042624fea0d
- Commit message:
- Fixed display
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 300dd6d7e5d5 -r 7b58f5574b7a main.cpp
--- a/main.cpp Sun Apr 04 18:47:56 2021 +0000
+++ b/main.cpp Sun Apr 04 18:50:41 2021 +0000
@@ -353,7 +353,7 @@
flag_flas = !flag_flas;
t_disp.reset();
t_disp.start();
- botL = "EXTEND" + Misc::blank(5) + Misc::itos(acc.getAngle(S_R1)) + "deg";
+ botL = "EXTEND" + Misc::blank(1) + Misc::itos(acc.getAngle(S_R1)) + "deg";
lcd.LCD_display(topL,botL);
}
@@ -368,7 +368,7 @@
flag_flas = !flag_flas;
t_disp.reset();
t_disp.start();
- botL = "RETRACT"+ Misc::blank(4) + Misc::itos(acc.getAngle(S_R1)) + "deg";
+ botL = "RETRACT"+ Misc::blank(1) + Misc::itos(acc.getAngle(S_R1)) + "deg";
lcd.LCD_display(topL,botL);
}
flag_idle = 0;
@@ -420,7 +420,7 @@
flag_flas = !flag_flas;
t_disp.reset();
t_disp.start();
- botL = "EXTEND" + Misc::blank(5) + Misc::itos(acc.getAngle(S_R2)) + "deg";
+ botL = "EXTEND" + Misc::blank(1) + Misc::itos(acc.getAngle(S_R2)) + "deg";
lcd.LCD_display(topL,botL);
}
@@ -435,7 +435,7 @@
flag_flas = !flag_flas;
t_disp.reset();
t_disp.start();
- botL = "RETRACT" + Misc::blank(4) + Misc::itos(acc.getAngle(S_R2)) + "deg";
+ botL = "RETRACT" + Misc::blank(1) + Misc::itos(acc.getAngle(S_R2)) + "deg";
lcd.LCD_display(topL,botL);
}
flag_idle = 0;
@@ -487,7 +487,7 @@
flag_flas = !flag_flas;
t_disp.reset();
t_disp.start();
- botL = "EXTEND" + Misc::blank(5) + Misc::itos(acc.getAngle(S_R1)) + "|" + Misc::itos(acc.getAngle(S_R2));
+ botL = "EXTEND" + Misc::blank(1) + Misc::itos(acc.getAngle(S_R1)) + "|" + Misc::itos(acc.getAngle(S_R2));
lcd.LCD_display(topL,botL);
}
@@ -502,7 +502,7 @@
flag_flas = !flag_flas;
t_disp.reset();
t_disp.start();
- botL = "RETRACT" + Misc::blank(4) + Misc::itos(acc.getAngle(S_R1)) + "|" + Misc::itos(acc.getAngle(S_R2));
+ botL = "RETRACT" + Misc::blank(1) + Misc::itos(acc.getAngle(S_R1)) + "|" + Misc::itos(acc.getAngle(S_R2));
lcd.LCD_display(topL,botL);
}
flag_idle = 0;
