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

@@ -82,5 +82,5 @@ void DriveBOTH(int16_t speedA,int16_t speedB)
MotorB_Dir(1);
speedB = -speedB;
}
MotorA_Speed(speedB);
MotorB_Speed(speedB);
}