From 4f04827be1e3dbed3140298e6c54b4b9508061b7 Mon Sep 17 00:00:00 2001 From: alufers Date: Thu, 2 Jan 2025 16:09:58 +0100 Subject: [PATCH] Increase door open time from ~1.88 seconds to ~5.64 --- Core/Src/main.c | 2 +- canpybara.ioc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Core/Src/main.c b/Core/Src/main.c index c458ed0..f0e98e5 100644 --- a/Core/Src/main.c +++ b/Core/Src/main.c @@ -338,7 +338,7 @@ static void MX_TIM3_Init(void) htim3.Instance = TIM3; htim3.Init.Prescaler = 60000; htim3.Init.CounterMode = TIM_COUNTERMODE_UP; - htim3.Init.Period = 500; + htim3.Init.Period = 1500; htim3.Init.ClockDivision = TIM_CLOCKDIVISION_DIV4; htim3.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_ENABLE; if (HAL_TIM_OC_Init(&htim3) != HAL_OK) diff --git a/canpybara.ioc b/canpybara.ioc index 91066f1..2f94259 100644 --- a/canpybara.ioc +++ b/canpybara.ioc @@ -283,7 +283,7 @@ TIM3.Channel-Output\ Compare1\ No\ Output=TIM_CHANNEL_1 TIM3.ClockDivision=TIM_CLOCKDIVISION_DIV4 TIM3.CounterMode=TIM_COUNTERMODE_UP TIM3.IPParameters=Channel-Output Compare1 No Output,Prescaler,Period,ClockDivision,CounterMode,AutoReloadPreload -TIM3.Period=500 +TIM3.Period=1500 TIM3.Prescaler=60000 USART1.IPParameters=VirtualMode,Mode USART1.Mode=MODE_TX