Make Endstops objects instead of structs in Axis

This commit is contained in:
Unknown
2018-09-08 18:25:51 -04:00
parent 21bdf453c3
commit 9b0bc6f840
9 changed files with 123 additions and 120 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ void Controller::start_anticogging_calibration() {
// Slowly drive in the negative direction at homing_speed until the min endstop is pressed
// When pressed, set the linear count to the offset (default 0), and then
bool Controller::home_axis() {
if (axis_->config_.min_endstop.enabled) {
if (axis_->min_endstop_.config_.enabled) {
set_vel_setpoint(-config_.homing_speed, 0.0f);
axis_->homing_state_ = HOMING_STATE_HOMING;
} else {