Nicolae Marton / Mbed 2 deprecated TDP3_OOP

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
Nicolaemf
Date:
Thu Mar 14 12:31:39 2019 +0000
Parent:
6:b457f1e2fff8
Commit message:
correction of minor build bugs;

Changed in this revision

LineFollowingRobot/L298.cpp Show annotated file Show diff for this revision Revisions of this file
LineFollowingRobot/L298_H.h Show annotated file Show diff for this revision Revisions of this file
LineFollowingRobot/main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/LineFollowingRobot/L298.cpp	Thu Mar 14 10:37:05 2019 +0000
+++ b/LineFollowingRobot/L298.cpp	Thu Mar 14 12:31:39 2019 +0000
@@ -16,7 +16,7 @@
 }
     
     
-void RobotControl::SetDirection(bool dir){
+void L298::SetDirection(bool dir){
     /*set direction of one of the sides depending on pwmSelect
     direction : 1 go forward  ,0 go backwards*/    
     
@@ -37,7 +37,7 @@
 }
 
 
-void RobotControl::SetSpeed(float speed){
+void L298::SetSpeed(float speed){
     /*set speed on the pwm which is point by m_pwmPtr (set by SetDirection)
     speed : the speed given to the motor, ranges from 0 to 1*/
     
--- a/LineFollowingRobot/L298_H.h	Thu Mar 14 10:37:05 2019 +0000
+++ b/LineFollowingRobot/L298_H.h	Thu Mar 14 12:31:39 2019 +0000
@@ -12,7 +12,7 @@
 private:
     
     DigitalOut m_motorBw;
-    DigitalOut m_motorFw
+    DigitalOut m_motorFw;
     PwmOut m_motorEnable;
     
     
--- a/LineFollowingRobot/main.cpp	Thu Mar 14 10:37:05 2019 +0000
+++ b/LineFollowingRobot/main.cpp	Thu Mar 14 12:31:39 2019 +0000
@@ -1,5 +1,5 @@
 #include <mbed.h>
-#include "L298.h"
+#include "L298_H.h"
 #include "IRSensor_H.h"
 
 /*
@@ -15,12 +15,12 @@
     - Right Sensor :        PTC0
     
 Motor Left Control :
-    - Motor Enable PWM :        PTA12
+    - Motor Enable PWM :     PTA12
     - Backwards Dout :       PTA4
     - Forward Dout :         PTA5
 
 Motor Right Control :
-    - Motor Enable PWM :        PTA13
+    - Motor Enable PWM :     PTA13
     - Backwards Dout :       PTD5
     - Forward Dout :         PTD0