Hi, I try to compile a mag sensor in PWM mode and a motor in velocity control (no current sensor) but I get weird error messages about the commander line and current sense stuff.
I can compile it for ESP32 dev module without errors…
Maybe I messed up my rp2040 libraries? Because I had mbed lib before, then removed it and installed philhowers lib.
warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
68 | command.add('T', doTarget, "target velocity");
| ^~~~~~~~~~~~~~~~~
c:\Users\USER\Documents\Arduino\libraries\Simple_FOC\src\current_sense\hardware_specific\rp2040\rp2040_mcu.cpp:18:44: error: 'ADC_CS_START_ONCE_BITS' was not declared in this scope
18 | alignas(32) const uint32_t trigger_value = ADC_CS_START_ONCE_BITS; // start once
| ^~~~~~~~~~~~~~~~~~~~~~