I've hooked up a VESC 6 to a Xiaomi M365 hub motor and I'm getting good FOC control so far.
I connected the M365 throttle control to ADC1 and I have good mapping 0-100, using current control setting. I'm wondering though if there is a setting which applies regen braking when I let off the throttle, similar to original M365 regen, or similar to Tesla accelerator pedal.
Maybe I'm missing a setting somewhere. Thanks for any help.