Software > Software

regarding the autocalibration method

<< < (2/2)

andreahmed:
waiting for the answers please -_-  ::)

Admin:
impatient i see  :P

The way I do it is:
my first reading the robot is off the line entirely
system reads sensors, then waits for next command
the second reading ALL sensors are on the line (i turn my bot sideways)
system reads sensors again

it will become obvious when you do it, i think

so you run a find max algorithm, and only store the two highest values.
max=0
if a>max, then max = a
if b>max, then max = b
etc.
then to find second max:
max2=0
if a>max2 != max, then max2 = a
if b>max2 != max, then max2 = b
etc.

andreahmed:
thanks alot
 ;D
i will try it and will tell ya the results , hope it works with the blue background .

Admin:
i dont know why i didnt send this line following stuff to you earlier!!!
http://www.societyofrobots.com/competitions_mobot.shtml

and videos
http://www.societyofrobots.com/competitions_mobot_video.shtml

Navigation

[0] Message Index

[*] Previous page

Go to full version