delete useless variable

This commit is contained in:
MaximZaitsev
2016-09-05 13:29:19 +03:00
parent a589f7da9c
commit 23caaf6ef9
@@ -14,9 +14,6 @@ class RoomBypassingAlgorithm(thisCar: Car) : AbstractAlgorithm(thisCar) {
override val SMOOTHING = SonarRequest.Smoothing.MEDIAN
override val WINDOW_SIZE = 3
//SHOULD BE CALIBRATED BEFORE RUNNING!!!!!!!!!!!
private val CHARGE_CORRECTION = 1.0//on full charge ok is 0.83 - 0.86
private val MAX_DISTANCE_TO_WALL_AHEAD = 55 // reached the corner and should turn left
private val OUTER_CORNER_DISTANCE_THRESHOLD = 90 // reached outer corner
private val ISOSCALENESS_MIN_DIFF = 5 // have to correct alignment to the wall
@@ -184,7 +181,6 @@ class RoomBypassingAlgorithm(thisCar: Car) : AbstractAlgorithm(thisCar) {
}
log("")
// Check most basic measurements: 60/90/120
log("2. Check if we have measurement on 90")
if (dist90.distance == -1 || dist90.distance > OUTER_CORNER_DISTANCE_THRESHOLD) {