autocar with cliff and obstacle avoidance feature

Dependencies:   Ping

Revision:
1:c7d5b9662b4f
Parent:
0:b9d5ff825f0f
--- a/autocar/autocar.h	Thu Jul 19 05:17:01 2018 +0000
+++ b/autocar/autocar.h	Thu Jul 19 05:41:17 2018 +0000
@@ -33,6 +33,7 @@
 void driveMotor(bool left, bool middle, bool right);
 void driveMotor(bool left, bool middle, bool right, bool hasObstacle);
 void driveMotorPID(int values, float Kp, float Ki, float Kd);
+void obstacle(bool hasCliff, bool hasObstacle);
 
 void init();
 void stop();