From 65a95d9b2a5271de897febdd669c8b9a6c492c39 Mon Sep 17 00:00:00 2001 From: Johannes Paehr Date: Sat, 9 May 2026 20:12:28 +0200 Subject: [PATCH] added config for dea + added build and flash section in readme --- Core/Src/main.cpp | 8 ++++++-- README.md | 9 +++++++-- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/Core/Src/main.cpp b/Core/Src/main.cpp index 9e3667c..33efb82 100644 --- a/Core/Src/main.cpp +++ b/Core/Src/main.cpp @@ -150,8 +150,12 @@ int main(void) { /* USER CODE BEGIN 3 */ uint16_t angleSensor = AngleSensor.getAngel(); - - dutyCycle = mapToRange(12600, 16100, 0, 1000, angleSensor); + + // config shell + // dutyCycle = mapToRange(12600, 16100, 0, 1000, angleSensor); + + // config dea + dutyCycle = mapToRange(23545, 26820, 0, 1000, angleSensor); if (dutyCycle < 100) { dutyCycle = 0; diff --git a/README.md b/README.md index 7ba0d69..548514e 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,9 @@ # Firmware for Slotcar Controller -- based on STM32g30 -- TLE5012b \ No newline at end of file +## Hardware +- STM32g30 +- TLE5012b + +## Build and flash +- open projekt in vscode +- Run and Debug -> select STM32Cube: Launch ST-Link GDB Server \ No newline at end of file