Skip to content

Commit

Permalink
Fixing an issue within the lineTracking-routine
Browse files Browse the repository at this point in the history
  • Loading branch information
joy-it committed Jul 14, 2020
1 parent c774fbb commit db92818
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ function lineTracking () {
} else if (JoyCar.linefinder(SensorLCRSelection.Left) && (JoyCar.linefinder(SensorLCRSelection.Center) && !(JoyCar.linefinder(SensorLCRSelection.Right)))) {
JoyCar.turn(FRDirection.Forward, LRDirection.Left, 50, 2)
} else if (JoyCar.linefinder(SensorLCRSelection.Left) && (JoyCar.linefinder(SensorLCRSelection.Center) && JoyCar.linefinder(SensorLCRSelection.Right))) {
JoyCar.drive(FRDirection.Forward, FRDirection.Forward, 50)
JoyCar.drive(FRDirection.Forward, 50)
} else {
JoyCar.stop(StopIntensity.Intense)
JoyCar.brakelight(ToggleSwitch.On)
Expand Down

0 comments on commit db92818

Please sign in to comment.