fix missing inits in motors and encoders
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include "drvEncoder.h"
|
||||
#include "hwTIM.c"
|
||||
|
||||
|
||||
extern TIM_HandleTypeDef htim1;
|
||||
@@ -8,6 +9,8 @@ extern TIM_HandleTypeDef htim4;
|
||||
|
||||
|
||||
void drvEncoder_Init(void) {
|
||||
HW_TIM_Init();
|
||||
|
||||
HAL_TIM_Encoder_Start(&htim1, TIM_CHANNEL_ALL);
|
||||
HAL_TIM_Encoder_Start(&htim2, TIM_CHANNEL_ALL);
|
||||
HAL_TIM_Encoder_Start(&htim3, TIM_CHANNEL_ALL);
|
||||
|
||||
Reference in New Issue
Block a user