Skip to content

Commit

Permalink
use move away to make sure limit switch it cleared before homing to t…
Browse files Browse the repository at this point in the history
…he next limit switch
  • Loading branch information
martha-johnston committed Sep 27, 2024
1 parent eec1110 commit 70bb4c3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions components/gantry/singleaxis/singleaxis.go
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,7 @@ func (g *singleAxis) testLimit(ctx context.Context, pin int) (float64, error) {
// Short pause after stopping to increase the precision of the position of each limit switch
position, err := g.motor.Position(ctx, nil)
time.Sleep(250 * time.Millisecond)
g.moveAway(ctx, pin)
return position, err
}

Expand Down

0 comments on commit 70bb4c3

Please sign in to comment.