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:
- 23:7e9505da7f48
- Parent:
- 22:5d3332fc4c5c
- Child:
- 24:6427b144b17c
--- a/main.cpp Tue Oct 11 11:34:59 2022 +0000 +++ b/main.cpp Tue Oct 11 11:42:16 2022 +0000 @@ -21,8 +21,8 @@ -#define PITLOGPATH "local/pitlog.txt" -#define VOLTAGELOGPATH "local/voltage.txt" +#define PITLOGPATH "/local/pitlog.txt" +#define VOLTAGELOGPATH "/local/voltage.txt" // Prototypes @@ -56,11 +56,13 @@ int gotoPit = 0; // wether or not the robot is heading to pit. Initialstate false. int ccount = 0; //used to count cycles + /*Printing secret cat mission*/ + InitialMessages(); + /*Create pitlog used to log the number of pitstop */ PS_CreateLog(); TE_CreateVoltageLog(); - /*Printing secret cat mission*/ - InitialMessages(); + @@ -125,6 +127,8 @@ void InitialMessages(void){ /*Prints iniatl secret mission*/ + + m3pi.cls(); m3pi.locate(0,0); m3pi.printf("eliminate"); @@ -139,6 +143,14 @@ m3pi.printf("%4.4f ",m3pi.pot_voltage()); wait(10.0); m3pi.cls(); + m3pi.locate(0,0); + m3pi.printf("** 3 **"); + wait(1.0); + m3pi.cls(); + m3pi.printf("** 2 **"); + + + } int PitTest(void){ /* Test the batteri voltage if the robot is not headed for pit */