Skip to content

Commit 8a3cc56

Browse files
committed
small fixes
1 parent 3ee1cbd commit 8a3cc56

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

components/gantry/singleaxis/singleaxis.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import (
88
"sync"
99
"time"
1010

11-
"github.com/golang/geo/r3"
1211
"github.com/pkg/errors"
1312
"go.uber.org/multierr"
1413
utils "go.viam.com/utils"
@@ -102,7 +101,6 @@ type singleAxis struct {
102101
rpm float64
103102

104103
model referenceframe.Model
105-
frame r3.Vector
106104

107105
cancelFunc func()
108106
logger logging.Logger
@@ -154,12 +152,6 @@ func (g *singleAxis) Reconfigure(ctx context.Context, deps resource.Dependencies
154152
return errors.New("gantry with one limit switch per axis needs a mm_per_length ratio defined")
155153
}
156154

157-
// Add a default frame, then overwrite with the config frame if that is supplied
158-
g.frame = r3.Vector{X: 1.0, Y: 0, Z: 0}
159-
if conf.Frame != nil {
160-
g.frame = conf.Frame.Translation
161-
}
162-
163155
rpm := g.gantryToMotorSpeeds(newConf.GantryMmPerSec)
164156
g.rpm = rpm
165157
if g.rpm == 0 {

components/gantry/test_gantry_model.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"translation": {
1818
"x": 0,
1919
"y": 0,
20-
"z": 75
20+
"z": 0
2121
}
2222
}
2323
}

0 commit comments

Comments
 (0)