diff --git a/sensors/depth/depth.go b/sensors/depth/depth.go index 4c2b738b..4ce3c033 100644 --- a/sensors/depth/depth.go +++ b/sensors/depth/depth.go @@ -18,7 +18,7 @@ type Depth struct { } // New creates a new Depth sensor based on the sensor definition and the service config. -func New(ctx context.Context, deps registry.Dependencies, sensors []string, sensorIndex int) (Depth, error) { +func New(deps registry.Dependencies, sensors []string, sensorIndex int) (Depth, error) { name, err := utils.GetName(sensors, sensorIndex) if err != nil { return Depth{}, err diff --git a/sensors/lidar/lidar.go b/sensors/lidar/lidar.go index 6dc2ebd1..58fac8a9 100644 --- a/sensors/lidar/lidar.go +++ b/sensors/lidar/lidar.go @@ -19,7 +19,7 @@ type Lidar struct { } // New creates a new Lidar sensor based on the sensor definition and the service config. -func New(ctx context.Context, deps registry.Dependencies, sensors []string, sensorIndex int) (Lidar, error) { +func New(deps registry.Dependencies, sensors []string, sensorIndex int) (Lidar, error) { name, err := utils.GetName(sensors, sensorIndex) if err != nil { return Lidar{}, err