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: mbed
Diff: Frog/Car.cpp
- Revision:
- 8:52794de935b2
- Parent:
- 7:1dce07fd0867
- Child:
- 9:d210eede4a1b
diff -r 1dce07fd0867 -r 52794de935b2 Frog/Car.cpp
--- a/Frog/Car.cpp Mon May 11 22:57:53 2020 +0000
+++ b/Frog/Car.cpp Tue May 12 05:14:17 2020 +0000
@@ -33,7 +33,7 @@
// intialize the vehicle size and position in lcd
// x position of all vehicles
- vehicle.x = 8 + seperation;
+ vehicle.x = seperation;
}
void Car::speedSlow(){
@@ -50,10 +50,10 @@
switch(dir)
{
case 1:
- vehicle.x += medium;
+ vehicle.x += 1.0;
break;
case 2:
- vehicle.x -= medium;
+ vehicle.x -= 1.0;
break;
}
}