added config for dea + added build and flash section in readme

This commit is contained in:
2026-05-09 20:12:28 +02:00
parent 6b55dea700
commit 65a95d9b2a
2 changed files with 13 additions and 4 deletions
+6 -2
View File
@@ -150,8 +150,12 @@ int main(void) {
/* USER CODE BEGIN 3 */ /* USER CODE BEGIN 3 */
uint16_t angleSensor = AngleSensor.getAngel(); 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) { if (dutyCycle < 100) {
dutyCycle = 0; dutyCycle = 0;
+7 -2
View File
@@ -1,4 +1,9 @@
# Firmware for Slotcar Controller # Firmware for Slotcar Controller
- based on STM32g30 ## Hardware
- TLE5012b - STM32g30
- TLE5012b
## Build and flash
- open projekt in vscode
- Run and Debug -> select STM32Cube: Launch ST-Link GDB Server