- #self turn-left with-velocity(20).\r
- #self set-global-velocity to (15).\r
- #if valuef >7: \r
- # self set-global-velocity to (15).\r
- #else if (valuef <=7) && (valuef > 0):\r
- #{ \r
- self set-global-velocity to (0).\r
- #self turn-left with-velocity(2).\r
- #self turn-right with-velocity(2).\r
- #self set-global-velocity to (0).\r
- #}\r
- #print "sensor valuef: $valuef valueb: $valueb".\r
- \r
- #else if value < 0.1: self turn-left with-velocity CELDAS_MAX_TURN_VELOCITY.\r
- #else if value > 10: self set-global-velocity to ((self get-global-velocity) - 1).\r