The parking is done using the following code:
followline "bl" :($crossingblackline)
followline "bl" :($crossingblackline)
stop
wait 1
get "guidemark"
wait 1
turn 90
switch ($guidemarkok)
case 1
followline "br" :($crossingblackline)
case 2
followline "br" :($crossingblackline)
followline "br" :($crossingblackline)
case 3
followline "br" :($crossingblackline)
followline "br" :($crossingblackline)
followline "br" :($crossingblackline)
case 4
followline "br" :($crossingblackline)
followline "br" :($crossingblackline)
followline "br" :($crossingblackline)
followline "br" :($crossingblackline)
endswitch
turn -90
ignoreobstacles
fwd 0.4
stop
No comments:
Post a Comment