Skip to content

Commit

Permalink
Fixing first homing in wrong direction
Browse files Browse the repository at this point in the history
  • Loading branch information
darcato committed Sep 11, 2019
1 parent 65e647d commit 129573b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions beckMotorApp/BeckhoffSrc/BeckController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -573,11 +573,11 @@ BeckAxis::BeckAxis(BeckController *pC, int axis) :
movePend=false;
limitSwitchDownIsInputOne = 0; //to invert the limit switches, based on how they are cabled
encoderEnabled = false;
curr_min_velo = 0;
curr_max_velo = 0;
curr_home_velo = 0;
curr_acc = 0;
curr_forw = 0;
curr_min_velo = 0; //mSteps
curr_max_velo = 0; //mSteps
curr_home_velo = 0; //mSteps
curr_acc = 0; //mSteps
curr_forw = -1; // illegal value to trigger first writing in any case
startingHome = false;
exitingLimSw = false;
microstepPerStep = 64;
Expand Down

0 comments on commit 129573b

Please sign in to comment.