The original conversion, the one that’s still in the VCS August version, is this.
double temp_in_percent = (motor_temperature - 21.0) / (100 - 21.0) * 100;
which was then limited to the range 0 to 100%
so 0% was 21C and 100% was 100C, we knew these were not the real limits, it was really just a place holder until final numbers were determined.
We updated in September to this.
double temp_in_percent = (motor_temperature - 20) / 50 * 100;
so 0% would be 20C and 100% would be 70C, this matches more accurately the limits in the motor. Unfortunately, as VCS has not been updated, neither has the sdk so we have not been able to release this.
We also added methods to read motor temperature in degC or degF, but again, it has not been released. Using what we have now it’s easy enough to convert back to a more useful absolute temperature.
The motor firmware will cut maximum motor current in half at 55 degC, to 1/4 at 60 degC, 1/8 at 65 degC and disable the motor completely if it reaches 70 degC.