Add LVSolarBuck64 firmware and debug console with uv support

STM32G474RB firmware for solar buck converter with MPPT, CC control,
Vfly compensation, and adaptive deadtime. Includes Textual TUI debug
console for real-time telemetry, parameter tuning, and SQLite logging.

Added pyproject.toml for uv: `cd code64 && uv run debug-console`

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-12 16:38:23 +07:00
co-authored by Claude Opus 4.6
parent 3f65b5f2f2
commit e7a23a3c7e
151 changed files with 231098 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
/*
* cc_pid.h
*
* Created on: Jun 10, 2025
* Author: janik
*/
#ifndef INC_PI_H_
#define INC_PI_H_
#include <stdint.h>
#include <stdint.h>
typedef struct {
float Kp;
float Ki;
float prev_error;
uint16_t output;
uint16_t out_min;
uint16_t out_max;
} PIController;
void PI_Init(PIController *pi, float Kp, float Ki, uint16_t out_min, uint16_t out_max);
uint16_t PI_Update(PIController *pi, float target, float measurement);
#endif /* INC_PI_H_ */