We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3546600 commit 4dcfd1aCopy full SHA for 4dcfd1a
source/docs/software/hardware-apis/sensors/encoders-software.rst
@@ -244,7 +244,7 @@ Encoders can be used on a robot drive to create a simple "drive to distance" rou
244
Encoder encoder = new Encoder(0, 1);
245
246
// Initialize motor controllers and drive
247
- Spark left1 new Spark(0);
+ Spark left1 = new Spark(0);
248
Spark left2 = new Spark(1);
249
250
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
281
282
frc::Spark left1{0};
283
frc::Spark left2{1};
284
+
285
frc::Spark right1{2};
286
frc::Spark right2{3};
287
0 commit comments