fix missing inits in motors and encoders

This commit is contained in:
2026-10-11 19:53:19 +03:00
parent 33e4fb34a1
commit 5d00e3f970
5 changed files with 17 additions and 1 deletions
+1
View File
@@ -3,6 +3,7 @@ set(KPI_Rover_Motors_Inc
)
set(KPI_Rover_Motors_Src
${CMAKE_CURRENT_SOURCE_DIR}/hwI2C2.c
${CMAKE_CURRENT_SOURCE_DIR}/drvMotors.c
${CMAKE_CURRENT_SOURCE_DIR}/PCA9685.c
${CMAKE_CURRENT_SOURCE_DIR}/ulGD.c
+2
View File
@@ -61,6 +61,8 @@ static void pca9685_write4(uint8_t reg, uint16_t on, uint16_t off)
*/
bool PCA9685_Init(void)
{
HW_I2C2_Init();
/* 1. Reset device (Wake up) */
pca9685_write(MODE1, 0x00);
HAL_Delay(10);