You should use AVCC and AGND. They are meant for analog signals.
Sorry we don’t have a deadzone feature, but that has been requested by others as well and we will consider adding it as a feature in the future.
I am using the Analog Vcc now but still need the dead zone. I have brute forced a guard band for ‘fraction’ variable in analog control routine. Seems to work. However if the guardband is too wide (say from 0.45 to 0.55 for fraction), the motors seem to run and stop abruptly. Have not analyzed the errors when that happens.
I would like to implement an ‘enable joystick switch’ by adding a physical switch to GPIO input. Which GPIO do you recommend for that and is there reference code already in place for such a switch?
You can change the code to make the response curve start from zero when it engages.
There have been some requests for an enable input, but we don’t have anything like that yet. You could make it yourself. Search the codebase for inspiration, search for HAL_GPIO_ReadPin.