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
+3
View File
@@ -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);