aboutsummaryrefslogtreecommitdiff
path: root/robot/movement.c
diff options
context:
space:
mode:
Diffstat (limited to 'robot/movement.c')
-rw-r--r--robot/movement.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/robot/movement.c b/robot/movement.c
index 37d66d5..e348410 100644
--- a/robot/movement.c
+++ b/robot/movement.c
@@ -1,11 +1,10 @@
#include "movement.h"
#include "orangutan_shim.h"
-unsigned int g_w2_sensors[5] = {0}; //IR sensors on the bottom of the robot
-unsigned int g_w2_position = 0; //position on the black line
+unsigned int g_w2_sensors[5] = {0}; // IR sensors on the bottom of the robot
+unsigned int g_w2_position = 0; // position on the black line
-
-//full rotation maze/charge
+// full rotation maze/charge
void w2_maze_rotation_full() {
set_motors(0, 0);
delay_ms(500);
@@ -16,7 +15,7 @@ void w2_maze_rotation_full() {
delay_ms(500);
}
-//left turn maze/charge
+// left turn maze/charge
void w2_maze_rotation_half_left() {
set_motors(0, 0);
set_motors(50, 50);
@@ -28,7 +27,7 @@ void w2_maze_rotation_half_left() {
delay_ms(500);
}
-//right turn maze/charge
+// right turn maze/charge
void w2_maze_rotation_half_right() {
set_motors(0, 0);
set_motors(50, 50);
@@ -42,7 +41,7 @@ void w2_maze_rotation_half_right() {
delay_ms(500);
}
-//180 turn in grid
+// 180 turn in grid
void w2_grid_rotation_full() {
set_motors(60, -60);
delay_ms(540);
@@ -50,7 +49,7 @@ void w2_grid_rotation_full() {
g_w2_position = read_line(g_w2_sensors, IR_EMITTERS_ON);
}
-//left turn in grid
+// left turn in grid
void w2_grid_rotation_half_left() {
set_motors(-30, 30);
delay_ms(600);
@@ -58,7 +57,7 @@ void w2_grid_rotation_half_left() {
g_w2_position = read_line(g_w2_sensors, IR_EMITTERS_ON);
}
-//right turn in grid
+// right turn in grid
void w2_grid_rotation_half_right() {
set_motors(30, -30);
delay_ms(600);