hc_luciano pushed to oem_pwmcontroller at Firmware/hpsg5-controller_v2-stm32g4

hc_luciano
Fri, 17 Apr 2026 23:32:48 +0200

0c90da4cfb9ad510d154ba8d066fa1f33745daaf Whole advance control system overhaul. Target angle is now calculated entirely like OEM firmware. Calibration data is fully parsed from a rom dump and a proper file is created with a python extraction tool. Open loop is tested and generates same values as original. In car PID testing has not been done.Voltage compensation is not active as we dont have that parameter's acquisition. 0130 used as flag couldnt be properly decompiled, but logging the ram shows its never blocking the closed loop state. Bench testing is required for verification. Some parameter called setpoint_offset hasnt yet been decompiled, and extractin is through RAM reading. Also modified can_db for T06301 cfgs to include proper FBNW acquisiton