You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -61,7 +61,7 @@ Compile options for the used **PWMMotorControl library** like `USE_ENCODER_MOTOR
61
61
|`CAR_HAS_US_DISTANCE_SENSOR`| disabled | A HC-SR04 ultrasonic distance sensor is mounted (default for most China smart cars). |
62
62
|`US_SENSOR_SUPPORTS_1_PIN_MODE`| disabled | Use modified HC-SR04 modules or HY-SRF05 ones.</br>Modify HC-SR04 by connecting 10kOhm between echo and trigger and then use only trigger pin. |
63
63
|`CAR_HAS_IR_DISTANCE_SENSOR`| disabled | Use Sharp GP2Y0A21YK / 1080 IR distance sensor. |
64
-
|`CAR_CAR_HAS_TOF_DISTANCE_SENSOR`| disabled | Use VL53L1X TimeOfFlight distance sensor. |
64
+
|`CAR_HAS_TOF_DISTANCE_SENSOR`| disabled | Use VL53L1X TimeOfFlight distance sensor. |
65
65
|`CAR_HAS_DISTANCE_SERVO`| disabled | Distance sensor is mounted on a pan servo (default for most China smart cars). |
66
66
|`DISTANCE_SERVO_IS_MOUNTED_HEAD_DOWN`| disabled | Distance.h | The distance servo is mounted head down to detect even small obstacles. The Servo direction is reverse then. |
67
67
|`CAR_HAS_PAN_SERVO`| disabled | Enables the pan slider for the `PanServo` at the `PIN_PAN_SERVO` pin. |
bool tMovementJustStarted = sDoStep || tCarIsStopped; // tMovementJustStarted is needed for speeding up US scanning by skipping first scan angle if not just started.
153
148
sDoStep = false; // Now it can be set again by GUI
154
149
155
-
if (sNextRotationDegree != 0) {
150
+
/*
151
+
* Check sNextRotationDegree
152
+
*/
153
+
if (sNextRotationDegree == MINIMUM_DISTANCE_TOO_SMALL) {
156
154
/*
157
-
* rotate car / go backward accordingly to sNextRotationDegree
155
+
* Go backwards and do a new scan
158
156
*/
159
-
if (sNextRotationDegree == MINIMUM_DISTANCE_TOO_SMALL) {
0 commit comments