We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d563ac8 commit 5c302bbCopy full SHA for 5c302bb
Raspberry/eclipse/RoverBin/src/main.cpp
@@ -28,9 +28,9 @@ int main(int argc, char* argv[])
28
29
RV_loggingOff();
30
RV_loopLoggingOff();
31
- RV_setFrequency(1);
+ RV_setFrequency(100);
32
RV_start();
33
- RV_move(RV_FORWARD, RV_FORWARD, 0,0);
+ RV_move(RV_BACKWARD, RV_FORWARD, 20, 70);
34
for (int i=0; 1 || i<10000; i++) {
35
RV_getPosition(&left, &right);
36
//printf("left: %ld, right: %ld\n", left, right);
@@ -39,10 +39,10 @@ int main(int argc, char* argv[])
39
//printf("left: %ld, right: %ld, NE: %d, SE: %d, SW: %d, NW: %d\n",
40
// left, right, sig[0], sig[1], sig[2], sig[3]);
41
42
- if (mustStop(&collisionSensors)) {
43
- RV_move(RV_FORWARD, RV_FORWARD, 0, 0);
44
- i=100000;
45
- }
+ //if (mustStop(&collisionSensors)) {
+ // RV_move(RV_FORWARD, RV_FORWARD, 0, 0);
+ // i=100000;
+ //}
46
47
RV_getLineSensors(&lineSensors);
48
printf("left: %ld, right: %ld, active: N: %d, E: %d, S: %d, W: %d, ambient: N: %d, E: %d, S: %d, W: %d\n",
0 commit comments