h121 wrote:Hi and thanks for this info! It'll be very useful when I get my motors from Ebay
Anyway, I tried to use your code and ran into some minor problems. First of all, I think there are a few typos in the average error calculation, line 308 or so. However, Python allows us to calculate the average without using a loop to add the error values. You can simply replace lines 305-308 with this:
- Code: Select all
errorValue = sum(errors) / len(errors)
I'll post more comments after I get to use it with some actual hardware.
Thanks for the feedback (and bug fix!)