I'm using two vesc (connected via can bus) to power an ebike with a mid drive motor and a rear hub motor (direct drive). Currently the set up is working mostly as expected but the full potential of the system is still being left on the table.
The problem I have though is the hub motor can be spun faster by the Mid drive than by itself. Overspinning the motor generates a higher voltage than the system runs at (58.8 full charge) and it's throwing an overvolt error. Is there a way to limit the Mid drive rpm only when the hub motor is near it's own maximum rpm? I thought traction controll would be the way to go but it would yield the same results as limiting the Mid drive rpm which I would rather avoid if possible. Field weakening seems to help with this problem but if the vesc fails at speed it may also damage the battery due to excess voltage