diff --git a/components/motor/gpio/motor_encoder.go b/components/motor/gpio/motor_encoder.go index 46ff54e32f9..9729caa3c04 100644 --- a/components/motor/gpio/motor_encoder.go +++ b/components/motor/gpio/motor_encoder.go @@ -113,7 +113,6 @@ func newEncodedMotor( cancelCtx, cancel := context.WithCancel(context.Background()) em := &EncodedMotor{ Named: name.AsNamed(), - cfg: motorConfig, ticksPerRotation: int64(motorConfig.TicksPerRotation), real: localReal, cancelCtx: cancelCtx, @@ -175,7 +174,6 @@ type EncodedMotor struct { resource.AlwaysRebuild activeBackgroundWorkers sync.WaitGroup - cfg Config real motor.LocalMotor encoder encoder.Encoder diff --git a/components/motor/gpio/motor_encoder_test.go b/components/motor/gpio/motor_encoder_test.go index 46668c397e1..11fbb073f2e 100644 --- a/components/motor/gpio/motor_encoder_test.go +++ b/components/motor/gpio/motor_encoder_test.go @@ -20,8 +20,6 @@ import ( "go.viam.com/rdk/resource" ) -// setupMotorWithEncoder(encType string) {} - func nowNanosTest() uint64 { return uint64(time.Now().UnixNano()) } @@ -93,7 +91,6 @@ func TestMotorEncoder1(t *testing.T) { }) t.Run("encoded motor testing SetPower interrupt GoFor", func(t *testing.T) { - t.Skip() test.That(t, motorDep.goForInternal(context.Background(), 1000, 1000), test.ShouldBeNil) test.That(t, fakeMotor.Direction(), test.ShouldEqual, 1) test.That(t, fakeMotor.PowerPct(), test.ShouldBeGreaterThan, float32(0)) @@ -277,7 +274,7 @@ func TestMotorEncoder1(t *testing.T) { } func TestMotorEncoderIncremental(t *testing.T) { - // t.Skip() + t.Skip() logger := golog.NewTestLogger(t) undo := SetRPMSleepDebug(1, false) defer undo()