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

Change thermistors from top-level to Motor #507

Merged
merged 3 commits into from
Oct 21, 2020
Merged

Conversation

PAJohnson
Copy link
Collaborator

This PR addresses issue #505. In addition, motor thermistors have been broken on devel for some time; this PR fixes that.

Changes:
fet_thermistor and motor_thermistor are now members of the Motor class
motor_thermistor requires some initialization - apply_config() method added for this purpose
Thermistor errors rolled into motor errors
odrivetool and GUI updated to handle change
Removed CurrentLimiter, Thermistor arrays abstraction. motor_thermistor and fet_thermistor get_current_limit() and do_checks() methods are called explicitly.

Thermistor apply_config now called in Motor::apply_config()
Thermistor errors rolled into motor errors
odrivetool and GUI updated to handle change
Removed CurrentLimiter,Thermistor arrays abstraction
Firmware/odrive-interface.yaml Show resolved Hide resolved
Firmware/MotorControl/motor.cpp Outdated Show resolved Hide resolved
Firmware/MotorControl/motor.cpp Outdated Show resolved Hide resolved
Firmware/MotorControl/motor.cpp Outdated Show resolved Hide resolved
Updated API Migration Notes
Changed Axis error that is thrown for over temp from ERROR_OVER_TEMP to ERROR_MOTOR_FAILED
Moved setting of thermistor_.motor_ = this from motor apply_config() to motor constructor
Moved motor_thermistor apply_config call from Motor to config_apply_all() in main.cpp
Copy link
Member

@samuelsadok samuelsadok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, looking good now!

@samuelsadok samuelsadok merged commit 1683657 into devel Oct 21, 2020
@Wetmelon Wetmelon deleted the move-thermistors branch October 22, 2020 02:02
@Wetmelon Wetmelon added this to the v3.6 Next milestone Nov 10, 2020
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.

3 participants