ADC small fixes
This commit is contained in:
@@ -62,6 +62,9 @@ static void adc_thread(void *p1, void *p2, void *p3) {
|
||||
else {
|
||||
values[i] = 0;
|
||||
}
|
||||
|
||||
// TODO: int to angles
|
||||
// TODO: normalize
|
||||
}
|
||||
|
||||
// Send to USB
|
||||
@@ -80,6 +83,7 @@ int adc_init_all(void) {
|
||||
// TIMER
|
||||
k_timer_init(&adc_timer, adc_timer_handler, NULL);
|
||||
|
||||
// MUX init
|
||||
ret = mux_init();
|
||||
if (ret != 0) {
|
||||
LOG_ERR("Failed to setup multiplexer: %d", ret);
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
#include <stdint.h>
|
||||
|
||||
|
||||
#define MUX_CHANNELS 16
|
||||
#define NUM_ADC_CHANNELS 18
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user