This program is used to control the car remotely via telnet using wifi.

Dependencies:   C12832_lcd WiflyInterface mbed

Fork of Mode-3_Remote_Control by Bhakti Kulkarni

Revision:
7:7f0988b083cb
Parent:
6:c9595d2630c7
Child:
8:c20dc0f4bc92
--- a/main.cpp	Mon Jun 09 23:32:35 2014 +0000
+++ b/main.cpp	Mon Jun 09 23:41:37 2014 +0000
@@ -10,6 +10,8 @@
 #define RIGHT 2
 #define STOP 0
 #define STRAIGHT_WHEEL 5
+#define servo_1 6
+#define servo_2 7
  
  
 PwmOut servo(p22);
@@ -74,6 +76,10 @@
                 motor = LEFT;
             else if (!(strcmp(buffer,"s")))
                 motor = STOP;
+            else if (!(strcmp(buffer,"o")))
+                motor = servo_1;
+            else if (!(strcmp(buffer,"p")))
+                motor = servo_2;
         //}
         servo.pulsewidth_us(10);
         wait_us(1);