jlab-sensing / soil-power-sensor-firmware

Firmware for STM32 and ESP32 microcontrollers on the Soil Power Sensor board
MIT License
0 stars 3 forks source link

Fix 50-calibrate-adc #102

Closed jmadden173 closed 1 week ago

jmadden173 commented 2 weeks ago

Merging into another dev PR

Purpose of the PR Fixes various issues in #88. Changelog is below

Development Environment Linux spruce 6.8.2-arch2-1 #1 SMP PREEMPT_DYNAMIC Thu, 28 Mar 2024 17:06:35 +0000 x86_64 GNU/Linux PlatformIO Core, version 6.1.7 Used ST-Link V3 MINIE

Test Procedure

./recorder.py --smu_host=128.114.51.30:5025 /dev/ttyUSB0 test.csv

Additional Context I tried enabling the current measurements and it turns out that it breaks the voltage measurements. What???

Also I noticed in nonlinear_regression.py there is still a config.yaml file? Im pretty sure this was only for sps v1 and not needed in the current version. It also appears that the code was copied from the calib and eval. These should really be functions.

PR #88