Project

General

Profile

Revision 5d0687a9

ID5d0687a9991d806c94fc7c21405334e6717e3611

Added by Priya about 7 years ago

Small changes to wireless, and starting turning with line following.

View differences:

scout/libscout/src/behaviors/sim_line.cpp
31 31
static int motor_r;
32 32
static double last_ret;
33 33

  
34

  
35 34
/** TODO: This should be part of the line sensor library */
36 35
double sim_line::get_line_pos(vector<uint32_t> readings)
37 36
{
......
60 59

  
61 60
    while(ok())
62 61
    {
63
        double line_loc = get_line_pos(linesensor->query());
62
        double line_loc = linesensor->readline();
64 63

  
65 64
        cout << "line_loc: " << line_loc << endl;
66 65

  

Also available in: Unified diff