Skip to content

Commit cb9cd3b

Browse files
committed
fix GPIO sonar pinout
1 parent 98873bb commit cb9cd3b

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

coderbot.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"move_tr_speed": "80", "move_fw_elapse": "1", "camera_path_object_size_min": "4000", "load_at_start": "", "move_tr_elapse": "0.5", "sound_stop": "$shutdown.mp3", "camera_color_object_size_min": "4000", "prog_level": "adv", "prog_scrollbars": "true", "move_fw_speed": "100", "camera_color_object_size_max": "160000", "sound_shutter": "$shutter.mp3", "show_page_prefs": "true", "cv_image_factor": "1", "ctrl_hud_image": "", "button_func": "none", "ctrl_fw_elapse": "-1", "ctrl_tr_elapse": "-1", "move_power_angle_2": "20", "move_power_angle_3": "20", "move_power_angle_1": "15", "move_motor_trim": "0.9", "show_page_program": "true", "sound_start": "$startup.mp3", "camera_exposure_mode": "auto", "ctrl_tr_speed": "80", "ctrl_fw_speed": "100", "camera_refresh_timeout": "0.1", "camera_jpeg_quality": "20", "prog_maxblocks": "-1", "move_motor_mode": "dc", "camera_path_object_size_max": "160000", "show_page_control": "true"}
1+
{"move_tr_speed": "80", "move_fw_elapse": "1", "camera_path_object_size_min": "4000", "load_at_start": "", "move_tr_elapse": "0.5", "sound_stop": "$shutdown.mp3", "camera_color_object_size_min": "4000", "prog_level": "adv", "prog_scrollbars": "true", "move_fw_speed": "100", "camera_color_object_size_max": "160000", "sound_shutter": "$shutter.mp3", "show_page_prefs": "true", "cv_image_factor": "2", "ctrl_hud_image": "", "button_func": "none", "ctrl_fw_elapse": "-1", "ctrl_tr_elapse": "-1", "move_power_angle_2": "20", "move_power_angle_3": "20", "move_power_angle_1": "15", "move_motor_trim": "0.9", "show_page_program": "true", "sound_start": "$startup.mp3", "camera_exposure_mode": "auto", "ctrl_tr_speed": "80", "ctrl_fw_speed": "100", "camera_refresh_timeout": "0.1", "camera_jpeg_quality": "20", "prog_maxblocks": "-1", "move_motor_mode": "dc", "camera_path_object_size_max": "160000", "show_page_control": "true"}

coderbot.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@
3232
PIN_PUSHBUTTON = 18
3333
PIN_SERVO_3 = 9
3434
PIN_SERVO_4 = 10
35-
PIN_SONAR_1_TRIGGER = 26
36-
PIN_SONAR_1_ECHO = 19
37-
PIN_SONAR_2_TRIGGER = 26
38-
PIN_SONAR_2_ECHO = 16
39-
PIN_SONAR_3_TRIGGER = 26
40-
PIN_SONAR_3_ECHO = 20
35+
PIN_SONAR_1_TRIGGER = 18
36+
PIN_SONAR_1_ECHO = 7
37+
PIN_SONAR_2_TRIGGER = 18
38+
PIN_SONAR_2_ECHO = 8
39+
PIN_SONAR_3_TRIGGER = 18
40+
PIN_SONAR_3_ECHO = 23
4141

4242
PWM_FREQUENCY = 100 #Hz
4343
PWM_RANGE = 100 #0-100

0 commit comments

Comments
 (0)