fix missing inits in motors and encoders
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user