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
+12-10Lines changed: 12 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,9 +13,9 @@ Just overwrite the function doUserCollisionDetection() to test your own skill.
13
13
14
14
You may also overwrite the function fillAndShowForwardDistancesInfo(), if you use your own scanning method.
15
15
16
-
# Compile options / macros
16
+
# Compile options / macros for this software
17
17
To customize the software to different car extensions, there are some compile options / macros available.<br/>
18
-
Modify it by commenting them out or in, or change the values if applicable. Or define the macro with the -D compiler option for gobal compile (the latter is not possible with the Arduino IDE, so consider to use[Sloeber](https://eclipse.baeyens.it).<br/>
18
+
Modify it by commenting them out or in, or change the values if applicable. Or define the macro with the -D compiler option for global compile (the latter is not possible with the Arduino IDE, so consider using[Sloeber](https://eclipse.baeyens.it).<br/>
19
19
Compile options for the used **PWMMotorControl library** like `USE_ENCODER_MOTOR_CONTROL` are described [here](https://github.com/ArminJo/PWMMotorControl#compile-options--macros-for-this-library).
20
20
21
21
| Option | Default | File | Description |
@@ -25,22 +25,24 @@ Compile options for the used **PWMMotorControl library** like `USE_ENCODER_MOTOR
25
25
|`USE_US_SENSOR_1_PIN_MODE`| disabled | RobotCar.h | 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. |
26
26
|`CAR_HAS_IR_DISTANCE_SENSOR`| disabled | RobotCar.h | Use Sharp GP2Y0A21YK / 1080 IR distance sensor. |
|`DISTANCE_SERVO_IS_MOUNTED_HEAD_DOWN`| disabled | Distance.h | The distance servo is mounted head down to detect even small obstacles. |
28
+
|`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. |
29
29
|`CAR_HAS_CAMERA`| disabled | RobotCar.h | Enables the `Camera` button for the `PIN_CAMERA_SUPPLY_CONTROL` pin. |
30
30
|`CAR_HAS_LASER`| disabled | RobotCar.h | Enables the `Laser` button for the `PIN_LASER_OUT` / `LED_BUILTIN` pin. |
31
31
|`CAR_HAS_PAN_SERVO`| disabled | RobotCar.h | Enables the pan slider for the `PanServo` at the `PIN_PAN_SERVO` pin. |
32
-
|`CAR_HAS_TILT_SERVO`| disabled | RobotCar.h | Enables the tilt slider for the `TiltServo` at the `PIN_TILT_SERVO` pin.. |
33
-
|`MONITOR_LIPO_VOLTAGE`| disabled | RobotCar.h | Shows VIN voltage and monitors it for undervoltage. Requires 2 additional resistors at pin A2. |
34
-
|`VIN_VOLTAGE_CORRECTION`| undefined | RobotCar.h | Voltage to be subtracted from VIN voltage. E.g. if there is a series diode between LIPO and VIN set it to 0.8. |
32
+
|`CAR_HAS_TILT_SERVO`| disabled | RobotCar.h | Enables the tilt slider for the `TiltServo` at the `PIN_TILT_SERVO` pin. |
33
+
|`ENABLE_RTTTL`| undefined | RobotCar.h | Plays melody after initial timeout has reached. Enables the Melody button, which plays a random melody. |
34
+
|`MONITOR_VIN_VOLTAGE`| disabled | RobotCar.h | Shows VIN voltage and monitors it for undervoltage. VIN/11 at A2, 1MOhm to VIN, 100kOhm to ground. |
35
+
|`VIN_VOLTAGE_CORRECTION`| undefined or 0.8 for UNO | RobotCar.h | Voltage to be subtracted from VIN voltage for voltage monitoring. E.g. if there is a series diode between LIPO and VIN as on the UNO boards, set it to 0.8. |
36
+
|`SUPPORT_EEPROM_STORAGE`| disabled | RobotCar.h | Activates the buttons to store compensation and drive speed. |
35
37
36
-
### Modifying library properties with Arduino IDE
37
-
First use *Sketch/Show Sketch Folder (Ctrl+K)*.<br/>
38
+
### Modifying compile options with Arduino IDE
39
+
First, use *Sketch > Show Sketch Folder (Ctrl+K)*.<br/>
38
40
If you did not yet stored the example as your own sketch, then you are instantly in the right library folder.<br/>
39
41
Otherwise you have to navigate to the parallel `libraries` folder and select the library you want to access.<br/>
40
42
In both cases the library files itself are located in the `src` directory.<br/>
41
43
42
-
### Modifying library properties with Sloeber IDE
43
-
If you are using Sloeber as your IDE, you can easily define global symbols with *Properties/Arduino/CompileOptions*.<br/>
44
+
### Modifying compile options with Sloeber IDE
45
+
If you are using Sloeber as your IDE, you can easily define global symbols with *Properties > Arduino > CompileOptions*.<br/>
0 commit comments