Follow me bot application!
Dependencies: Rectangle Servo TextLCD mbed
Diff: iRobot/iRobot.h
- Revision:
- 3:de12b39ad805
- Parent:
- 1:6c399fc35deb
--- a/iRobot/iRobot.h Thu Nov 21 00:02:05 2013 +0000 +++ b/iRobot/iRobot.h Mon Nov 25 19:55:12 2013 +0000 @@ -20,6 +20,8 @@ void changeSpeed(int speed); void receive_sensor(); char sensorCode(); + int getAngle(); + void turnAngle(int angle); private: @@ -40,6 +42,7 @@ static const char BumpsandDrops = 7; static const char Distance = 19; static const char Angle = 20; + static const char waitAngle = 157; /* Global variables with sensor packet info */ char Sensor_byte_count; char Sensor_Data_Byte;