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
Fork of Robocode by
Diff: source/main.cpp
- Revision:
- 19:baa8371d55b4
- Parent:
- 18:a82994e67297
- Child:
- 21:cb40c0533bc2
diff -r a82994e67297 -r baa8371d55b4 source/main.cpp
--- a/source/main.cpp Thu Mar 02 08:16:07 2017 +0000
+++ b/source/main.cpp Thu Mar 02 08:48:50 2017 +0000
@@ -27,21 +27,18 @@
//indicator leds arround robot
DigitalOut leds[] = { PC_8, PC_6, PB_12, PA_7, PC_0, PC_9 };
-//motor stuff
-DigitalOut enableMotorDriver(PB_2);
-PwmOut pwmL(PA_8);
-PwmOut pwmR(PA_9);
+
static double time_counter = 0.0f;
static double timer0 = 0.0f;
-//static double deltatime = 0.0f;
bool status = 0;
int main()
{
-
+ move_init();
+ move_forward_slow();
/* while(1){
if(status == 1){
