When motors stuck their current draw increases, you can sense that increase in the current and then change the rotation of the motor. The simplest way to measure current is with using a shunt resistor, for sensing high currents, current sensors based on hall effect sensors is usually used. ACS712 is one example.
How to sense current using a shunt?
In short, I ended up creating a library capable to drive multiple DShot600 ESCs:
It still need a lot more polish, but the bit-banging works really well.
I tried the method @dannyf mentioned, which involved combining 3 SPI bytes to form 1 dShot bit and it actually works.
But there's a few problem with SPI:
It takes up the ...