This is a re-post of the issue I posted a week ago; posting under ‘Support’ with more details of what worked and what doesn’t for me.
I am trying to control velocity with analog joystick and would like to use 0.4.11 firmware since I may have to use rev 3.6 56V board I have to use 36V hoverboard motors.
My fallback is to use rev 3.5 24V board, but not sure that I will get sufficient power at 24Volts
I had made changes to code in Nov '18 as suggested here: https://github.com/madcowswe/ODrive/pull/243
and they seemed to work. However, the motors do not completely stop at the joystick’s neutral position - likely because there is some noise coming from the potentiometers (need to check this).
I tried changing a few things in lowlevel.cpp:
- Tried to comment our RC PWM code - since I do not intend to use GPIOs for PWM. I did this because GPIO 3 and 4 can be used for PWM or analog mapping. This did not compile since 2 functions pwm_in_init and pwm_in_cb are used by other modules.
- Tried to limit iteration to GPIO 1 & 2 in function pwm_in_cb in lowlevel.cpp by changing GPIO_COUNT to 2 (hardcoded just to try). This compiled but no effect.
- In communications.cpp commented out pwm_mapping for GPIO 3 & 4. I did not think this would fix the problem but thought was worth trying since I do get lost between all different FW files. It does work to the extent that Odrivetool’s odrv0.config command does not show gpio3 and 4 for pwm mapping - only shows analog mapping.
I am currently trying the 3.5 24V board which worked with the Nov 18 version (with the changes mentioned above).
I really need the issue fixed urgently. I think the Nov version based on firmware rev 0.4.7 or earlier was quite different than 0.4.11 version.
To get going immediately, I can also temporarily use the source code for the Nov. 18 version and make the changes.
If anyone has suggestions on what I should try, please advise.