Revision 7f095440
Sepearated refresh rate for scouts and for the simulator.
scout/libscout/src/behaviors/line_follow.cpp | ||
---|---|---|
38 | 38 |
{ |
39 | 39 |
double line_loc = linesensor->readline(); |
40 | 40 |
|
41 |
ROS_INFO("Line location: %lf.\n", line_loc); |
|
42 |
|
|
43 | 41 |
motor_l = min(max((int) (-MOTOR_BASE + SCALE * line_loc), -128), 127); |
44 | 42 |
motor_r = min(max((int) (-MOTOR_BASE - SCALE * line_loc), -128), 127); |
45 | 43 |
|
Also available in: Unified diff