How to cycle the motor test in swing mode?

image
We want to do the motor position test in the cycle of forward-and-reverse mode, is there any way in the control panel or other place in software to achieve this continuous cycle test? Thanks.

Hi! My general recommendation would be to make a quick script to control it over Python: Python Package — ODrive Documentation 0.6.12 documentation

However, the ODrive does have a self-stimulus mode to track internally-generate sine wave setpoints.

In ODrivetool or the inspector tab of the GUI:
axis0.controller.config.input_mode = InputMode.TUNING
axis0.controller.config.control_mode = ControlMode.POSITION_CONTROL
axis0.requested_state = AxisState.CLOSED_LOOP_CONTROL

Then you can set your desired sine wave frequency and amplitude via axis0.controller.autotuning.frequency (Hz) and axis0.controller.autotuning.pos_amplitude.