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.
Diff: main.cpp
- Revision:
- 69:d7125d5b5cc8
- Parent:
- 68:bb2ee5b4f9dd
- Child:
- 70:e6cc44d1487d
--- a/main.cpp Wed Oct 12 11:25:20 2022 +0000 +++ b/main.cpp Wed Oct 12 11:52:25 2022 +0000 @@ -78,7 +78,7 @@ { /*Add one to the nummber allready in the pitlog*/ PS_AddStopToLog(); - + /*Run the pitstop function*/ PS_PitStop(); } @@ -125,31 +125,33 @@ } void LCD_InitialMessages(void){ - /*Prints iniatl secret mission*/ + /*Prints iniatial secret mission*/ m3pi.cls(); m3pi.locate(0,0); - m3pi.print("DESTROY",8); + m3pi.printf("DESTROY"); m3pi.locate(0,1); - m3pi.print("**CATS**",8); + m3pi.printf("**CATS**"); wait(5.0); m3pi.cls(); m3pi.locate(0,0); - m3pi.print("%4.4f ",m3pi.battery()); + m3pi.printf("%4.4f ",m3pi.battery()); m3pi.locate(0,1); - m3pi.print("%4.4f ",m3pi.pot_voltage()); + m3pi.printf("%4.4f ",m3pi.pot_voltage()); wait(10.0); m3pi.cls(); m3pi.locate(0,0); - m3pi.print("ROBOT ON", 8); + m3pi.printf("ROBOT ON"; m3pi.locate(0,1); - m3pi.print("TRACK!!",7); + m3pi.printf("TRACK!!"); wait(4.0); LCD_CountDown(3); m3pi.cls(); m3pi.locate(0,0); - m3pi.print("** GO **",8); + m3pi.printf("** GO **"); + + wait (1.0); } @@ -162,7 +164,7 @@ m3pi.locate(0,0); str[4] = i; - m3pi.print(str, i ); + m3pi.print(str, 8); wait(1.0); } @@ -184,9 +186,9 @@ LED_Control(1, 1); m3pi.cls(); m3pi.locate(0,0); - m3pi.print("Going to",8); + m3pi.printf("Going to"); m3pi.locate(0,1); - m3pi.print("**PIT**",7); + m3pi.printf("**PIT**"); } return result; }