Project

General

Profile

Revision 7f095440

ID7f095440408d601f898e13795bfd0da713393a0d

Added by Priya about 4 years ago

Sepearated refresh rate for scouts and for the simulator.

View differences:

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