Lu-Hsuan Chen
/
autocar_obstacle_mbed
autocar with cliff and obstacle avoidance feature
Diff: autocar/autocar.h
- Revision:
- 1:c7d5b9662b4f
- Parent:
- 0:b9d5ff825f0f
diff -r b9d5ff825f0f -r c7d5b9662b4f autocar/autocar.h --- 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();