Skip to content

Commit eceb82e

Browse files
committed
Fixed ball compression sensor
1 parent 6910dae commit eceb82e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

config/subsystems.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ Turret:
2424
pinchRollerMotor: { channel: 5, inverted: false }
2525
kingRollerMotor: { channel: 3, inverted: false }
2626
ballSensor: { channel: 4, minDistance: 300.0, maxDistance: 26.0 }
27+
ballCompressionSensor: { channel: 0, scale: 1.0, offset: 0.0 }
2728
hoodDeploySolenoid: 0
2829
shortSolenoid: 1
2930
longSolenoid: 2

rio/src/main/java/org/teamtators/rotator/config/AnalogPotentiometerConfig.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
public class AnalogPotentiometerConfig {
66
public int channel;
7-
public double scale;
8-
public double offset;
7+
public double scale = 1.0;
8+
public double offset = 0.0;
99

1010
public AnalogPotentiometer create() {
1111
return new AnalogPotentiometer(channel, scale, offset);

0 commit comments

Comments
 (0)