final project  1
drive.h
Go to the documentation of this file.
1 
10 #include "open_interface.h"
11 
12 #ifndef DRIVE_H_
13 #define DRIVE_H_
14 
15 void turn_right(oi_t *sensor, int degrees);
16 void turn_left(oi_t *sensor, int degrees);
17 short move_forward(oi_t *sensor, short cm);
18 short move_back(oi_t *sensor, short cm);
19 void stopmoving();
20 
21 #endif /* DRIVE_H_ */
short move_forward(oi_t *sensor, short cm)
Moves the robot forward.
Definition: drive.c:84
short move_back(oi_t *sensor, short cm)
Moves the robot back.
Definition: drive.c:67
void turn_left(oi_t *sensor, int degrees)
Turns the robot left.
Definition: drive.c:49
void stopmoving()
Stops robot from moving.
Definition: drive.c:132
iRobot Create Sensor Data
void turn_right(oi_t *sensor, int degrees)
Turns the robot right.
Definition: drive.c:32