Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Corrected temperature reading from CAN in MIT mode #4

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Mennosytsma
Copy link

When trying the demo scripts using an AK60-6-V1.1 connected via a PEAK CAN UBS converter, all demo scripts gave an overtemperature error.
Looking into it more closely it seems that the temperature data is not scaled or anything after reading it from CAN, where most other values are transformed using the uint_to_float.
Page 39 of the TMotor manual specifies the limits for the messages in Servo mode, but for MIT mode this is not explicitly mentioned.
TMotor Manual
For my setup the limit values of 0 to 100 seem to give a decent reading of the room temperature upon startup of the motor.
I have also asked this question to TMotor. In their response they indicated that the temperature protection limit should be 140 degrees celcius and the temperature reading should just be substracted by 40 to obtain the temperature, which in my case results in an unrealistically low temperature for the room.
TMotor Manual Chinese

@JFredPerspektiv
Copy link

Thanks for your commit Mennosytsma !
I implemented the corrected temperature in mit_can for my AK80-64 and its works just fine. Problem solved in few minutes, thanks to your work. IMO, this part is good to merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants