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:
- 28:2c93dff934b1
- Parent:
- 27:8561eeb0bd1d
- Child:
- 29:b1a18d0493c9
--- a/main.cpp Tue Oct 11 12:07:50 2022 +0000 +++ b/main.cpp Tue Oct 11 12:14:39 2022 +0000 @@ -25,9 +25,9 @@ // Prototypes int PitTest(void); // Test if to robot needs to goto pit void InitialMessages(void); // Prints initial message to the LCD -void LED_Control(int ledNumber, int state); //turn ledNumber to 1=on, 0 = off -void Blink(int ledNumber); // make ledNumber blinik -void LCDCountDown(int num); +void LED_Control(int ledNumber, int state); //Turn ledNumber to 1=on, 0 = off +void LED_Blink(int ledNumber); // Make ledNumber blinik +void LCDCountDown(int num); //LCD Coundown function void PS_PitStop(void); // @@ -79,7 +79,7 @@ /*Add one to the nummber allready in the pitlog*/ PS_AddStopToLog(); /*Run the pitstop function*/ - PS_PitStop (); + PS_PitStop(); } @@ -142,15 +142,15 @@ m3pi.locate(0,1); m3pi.printf("%4.4f ",m3pi.pot_voltage()); wait(10.0); + m3pi.cls(); m3pi.locate(0,0); - m3pi.printf("ROBOT PÅ"); + m3pi.printf("ROBOT ON"); m3pi.locate(0,1); - m3pi.printf("BANEN"); + m3pi.printf("TRACK!!"); wait(4.0); LCDCountDown(3); m3pi.cls(); m3pi.locate(0,0); - m3pi.printf("** GO **"); } @@ -200,7 +200,7 @@ } } -void Blink(int ledNumber) +void LED_Blink(int ledNumber) { int a = 2; LED_Control (ledNumber , 0); @@ -220,7 +220,7 @@ // increase counter with one while (1) { - Blink (1); // signal in pit + LED_Blink (1); // signal in pit /* missing input to stop blink. */