Skip to content

MetisMontessoriLyceum/cyborg-rc2015

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TeamCyborg

robocup junior 2015

how the robot follows the line

as line sensors we use the Light Sensor Array and a normal Lego Light Sensor.

first, the robot calculates the position of the line:

int error = 350 - (sensor[0] + sensor[1]*100 + sensor[2]*200 ... ) / (sensor[0] + sensor[1] + sensor[2] ... );

note: that the values are reversed, so black is 100 and white is 0

then, it does the error * Kp and runs the motors with that.

gap vs line lost

when the line is not directly under the line sensor array the error is -350, in this case, we look at what happend before the robot lost the line to determine if the line was lost or if ther is a gap

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages