1- package com . qualcomm . ftcrobotcontroller . opmodes ;
1+ package org . firstinspires . ftc . teamcode ;
22
33import com .qualcomm .ftccommon .DbgLog ;
44import com .qualcomm .robotcore .eventloop .opmode .OpMode ;
55import com .qualcomm .robotcore .hardware .DcMotor ;
6- import com .qualcomm .robotcore .hardware .DcMotorController ;
76import com .qualcomm .robotcore .hardware .Servo ;
87import com .qualcomm .robotcore .util .Range ;
98
2019 * calls to methods will fail, but will not cause the application to crash.
2120 *
2221 * @author SSI Robotics
23- * @version 2015-08-13 -20-04
22+ * @version 2016-09-05 -20-04
2423 */
2524public class PushBotHardware extends OpMode
2625
@@ -391,7 +390,7 @@ public void run_using_left_drive_encoder ()
391390 if (v_motor_left_drive != null )
392391 {
393392 v_motor_left_drive .setMode
394- ( DcMotorController .RunMode .RUN_USING_ENCODERS
393+ ( DcMotor .RunMode .RUN_USING_ENCODER
395394 );
396395 }
397396
@@ -410,7 +409,7 @@ public void run_using_right_drive_encoder ()
410409 if (v_motor_right_drive != null )
411410 {
412411 v_motor_right_drive .setMode
413- ( DcMotorController .RunMode .RUN_USING_ENCODERS
412+ ( DcMotor .RunMode .RUN_USING_ENCODER
414413 );
415414 }
416415
@@ -447,10 +446,10 @@ public void run_without_left_drive_encoder ()
447446 if (v_motor_left_drive != null )
448447 {
449448 if (v_motor_left_drive .getMode () ==
450- DcMotorController .RunMode .RESET_ENCODERS )
449+ DcMotor .RunMode .STOP_AND_RESET_ENCODER )
451450 {
452451 v_motor_left_drive .setMode
453- ( DcMotorController .RunMode .RUN_WITHOUT_ENCODERS
452+ ( DcMotor .RunMode .RUN_WITHOUT_ENCODER
454453 );
455454 }
456455 }
@@ -470,10 +469,10 @@ public void run_without_right_drive_encoder ()
470469 if (v_motor_right_drive != null )
471470 {
472471 if (v_motor_right_drive .getMode () ==
473- DcMotorController .RunMode .RESET_ENCODERS )
472+ DcMotor .RunMode .STOP_AND_RESET_ENCODER )
474473 {
475474 v_motor_right_drive .setMode
476- ( DcMotorController .RunMode .RUN_WITHOUT_ENCODERS
475+ ( DcMotor .RunMode .RUN_WITHOUT_ENCODER
477476 );
478477 }
479478 }
@@ -511,7 +510,7 @@ public void reset_left_drive_encoder ()
511510 if (v_motor_left_drive != null )
512511 {
513512 v_motor_left_drive .setMode
514- ( DcMotorController .RunMode .RESET_ENCODERS
513+ ( DcMotor .RunMode .STOP_AND_RESET_ENCODER
515514 );
516515 }
517516
@@ -530,7 +529,7 @@ public void reset_right_drive_encoder ()
530529 if (v_motor_right_drive != null )
531530 {
532531 v_motor_right_drive .setMode
533- ( DcMotorController .RunMode .RESET_ENCODERS
532+ ( DcMotor .RunMode .STOP_AND_RESET_ENCODER
534533 );
535534 }
536535
0 commit comments