Skip to content

Commit 4dcfd1a

Browse files
authored
Fix example bug and inconstancy in encoders-software (#1691)
1 parent 3546600 commit 4dcfd1a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

source/docs/software/hardware-apis/sensors/encoders-software.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ Encoders can be used on a robot drive to create a simple "drive to distance" rou
244244
Encoder encoder = new Encoder(0, 1);
245245

246246
// Initialize motor controllers and drive
247-
Spark left1 new Spark(0);
247+
Spark left1 = new Spark(0);
248248
Spark left2 = new Spark(1);
249249

250250
Spark right1 = new Spark(2);
@@ -281,6 +281,7 @@ Encoders can be used on a robot drive to create a simple "drive to distance" rou
281281
// Initialize motor controllers and drive
282282
frc::Spark left1{0};
283283
frc::Spark left2{1};
284+
284285
frc::Spark right1{2};
285286
frc::Spark right2{3};
286287

0 commit comments

Comments
 (0)