ADC small fixes

This commit is contained in:
Your Name
2026-09-29 14:59:38 +03:00
parent abc042bf56
commit 92271ef376
2 changed files with 4 additions and 1 deletions
+4
View File
@@ -62,6 +62,9 @@ static void adc_thread(void *p1, void *p2, void *p3) {
else { else {
values[i] = 0; values[i] = 0;
} }
// TODO: int to angles
// TODO: normalize
} }
// Send to USB // Send to USB
@@ -80,6 +83,7 @@ int adc_init_all(void) {
// TIMER // TIMER
k_timer_init(&adc_timer, adc_timer_handler, NULL); k_timer_init(&adc_timer, adc_timer_handler, NULL);
// MUX init
ret = mux_init(); ret = mux_init();
if (ret != 0) { if (ret != 0) {
LOG_ERR("Failed to setup multiplexer: %d", ret); LOG_ERR("Failed to setup multiplexer: %d", ret);
-1
View File
@@ -5,7 +5,6 @@
#include <stdint.h> #include <stdint.h>
#define MUX_CHANNELS 16
#define NUM_ADC_CHANNELS 18 #define NUM_ADC_CHANNELS 18