value = sensor get-sensor-value.
- if value < 2: {
- leftWheel set-velocity to ((leftWheel get-velocity) + 1).
- rightWheel set-velocity to ((rightWheel get-velocity) + 1).
- }
-
- if value > 2: {
- leftWheel set-velocity to ((leftWheel get-velocity) - 1).
- rightWheel set-velocity to ((rightWheel get-velocity) - 1).
+ if value < 1: {
+ leftWheel set-velocity to ((leftWheel get-velocity) + 15).
+ rightWheel set-velocity to ((rightWheel get-velocity) + 15).
+ } else if value > 10: {
+ leftWheel set-velocity to ((leftWheel get-velocity) - 15).
+ rightWheel set-velocity to ((rightWheel get-velocity) - 15).
}
print value.