add Encoder and PID control and Abstacle control

This commit is contained in:
2025-07-03 00:29:57 +08:00
parent 0361cd17af
commit a635b6d5eb
49 changed files with 9072 additions and 7610 deletions

View File

@@ -59,6 +59,8 @@ void Error_Handler(void);
/* Private defines -----------------------------------------------------------*/
#define PWMA_Pin GPIO_PIN_2
#define PWMA_GPIO_Port GPIOC
#define HC_Echo_Pin GPIO_PIN_0
#define HC_Echo_GPIO_Port GPIOA
#define PWMB_Pin GPIO_PIN_1
#define PWMB_GPIO_Port GPIOB
#define AIN1_Pin GPIO_PIN_0
@@ -77,8 +79,6 @@ void Error_Handler(void);
#define E2A_GPIO_Port GPIOC
#define E2B_Pin GPIO_PIN_7
#define E2B_GPIO_Port GPIOC
#define HC_Echo_Pin GPIO_PIN_8
#define HC_Echo_GPIO_Port GPIOC
#define HC_Trig_Pin GPIO_PIN_9
#define HC_Trig_GPIO_Port GPIOC
#define Shake_Motor_Pin GPIO_PIN_12