Hi,
Context:
Currently working on taking an RC Car and making it autonomous. We’re testing the vehicle on grass, but it appears to have some issues when tracking trajectories. We’re using an ODrive Pro with
- An AS5048A communicating via SPI (looking online this has an output sample rate of 10.2 to 12.4 kHz–which seems really high (https://ams.com/documents/20143/36005/AS5048_DS000298_4-00.pdf).
- A 2 pole pair, 1275KV high current motor currently we’ve limited at 80A.
Issue:
Large velocity jumps or high torques raise a spin out error while on grass when the controller limit torque is high (around 0.350Nm). But if we use lower torque (.104Nm–the 20% recommendation), the vehicle will stall on grass if it doesn’t already have some momentum.
I’ve looked at similar issues suggesting expanding the spinout thresholds and increasing the controller.encoder_bandwidth.
So for reference, the encoder_bandwidth is set to 1000 and the spinout thresholds are at +/- 50 for electrical/mechanical.
Is this behavior normal when doing high velocity jumps (0rev/s to 170 rev/s)? Do you have any recommendations for how I might configure the ODrive settings to avoid spinout effectively–without introducing significant risk at detecting when an actual spinout occurs?
I think it’s odd that the AS5048A has a sample rate of 11.25kHz typically but the encoder_bandwidth is only 1000 (Hz?). But I could be reading the documentation incorrectly.