@lox897 Thanks, but I believe I got a breakthrough. However, nothing like the calculation you came with . Why would you divide ERPM with 7 to get RPM? As far as I understand the VESC counts 1 ERPM for each back-emp it measures. So to calculate the RPM of the motor I believe it should be:
RPM = (ERPM) / (motorpoles * 3)
So if I had a motor with 14 poles, the RPM of the motor could be calculated by dividing ERPM with 42. To calculate the speed from RPM is quite simple from there, that is if you know the gearing ratio and wheel diameter.
Speed = (RPM * ratio * d * pi * 60) / 1000000
The wheel diameter d is in millimeters and RPM in minutes^-1. I then multiply with 60 to convert minutes to hours and lastly divide with 1000000 to get the result in km (1km = 1000000mm). What do you think about my calculations, am I wrong?
@Neilfenstein thanks man ! Yeah, I thought about that option too, but I believe it is too risky (could easily be activated while driving). However, instead of adding a new button I found another solution. My idea is that when the remote turns on it checks whether or not the trigger is active. If the trigger is active the settings menu are loaded, and if not it simply turns on normally. This way you can only access the settings if you restart the remote - do you think that’s a problem?
@zeah Thanks! I am glad you like it