We have 2 ODrive (3.6 - 56V) (0.5.2 fw) controllers that are connected to hoverboard wheels and we are trying to remote control them with an RC. We are defining the GPIOs 3 and 4 following the documentation:
odrv0.config.gpio3_mode = GPIO_MODE_PWM odrv0.config.gpio3_pwm_mapping.min = -2 odrv0.config.gpio3_pwm_mapping.max = 2 odrv0.config.gpio3_pwm_mapping.endpoint = odrv0.axis0.controller._input_pos_property odrv0.config.gpio4_mode = GPIO_MODE_PWM odrv0.config.gpio4_pwm_mapping.min = -2 odrv0.config.gpio4_pwm_mapping.max = 2 odrv0.config.gpio4_pwm_mapping.endpoint = odrv0.axis1.controller._input_pos_property
GPIO 3 is working on one of the drivers and we can control the motor with it but GPIO 4 is not working and the result of
odrv0.axis1.controller.input_vel is showing “0.0” all the time.
On the other driver neither GPIO 3 or 4 are working properly.
Any help is appreciated!