Project

General

Profile

Revision ae21730e

IDae21730ed52fe1d5e5638d166cca7dcef668ed08
Parent 26562d0c
Child f8655f01

Added by Priya about 12 years ago

Sim line can make turns now! yay

View differences:

scout/libscout/src/LinesensorControl.cpp
91 91

  
92 92
bool LinesensorControl::fullline()
93 93
{
94
    return false; 
95
}
96

  
97
void LinesensorControl::turnLeft()
98
{
99 94
    vector<uint32_t> readings = query();
95
    for(int i=0; i<8; i++)
96
    {
97
        if(readings[i] < 200)
98
          return false;
99
    }
100
    return true; 
100 101
}
101 102

  
102
void LinesensorControl::turnRight()
103
{
104
    vector<uint32_t> readings = query();
105

  
106
}

Also available in: Unified diff