Basic configuration steps
This commit is contained in:
@ -1,22 +0,0 @@
|
||||
package org.firstinspires.ftc.teamcode;
|
||||
|
||||
import com.qualcomm.robotcore.eventloop.opmode.TeleOp;
|
||||
import com.qualcomm.robotcore.eventloop.opmode.OpMode;
|
||||
import com.qualcomm.robotcore.hardware.HardwareMap;
|
||||
|
||||
|
||||
public class ProgrammingBoard3 {
|
||||
private DigitalChannel touchSensor;
|
||||
private DcMotor motor;
|
||||
|
||||
public void init (Hardware hwMap) {
|
||||
|
||||
touchSensor = hwMap.get(Digital.class, "touch_Sensor");
|
||||
touchSensor.setMode(Digital) }
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
)
|
||||
}
|
@ -73,7 +73,6 @@ import com.qualcomm.robotcore.util.ElapsedTime;
|
||||
*/
|
||||
|
||||
@TeleOp(name="Basic: Omni Linear OpMode", group="Linear OpMode")
|
||||
@Disabled
|
||||
public class BasicOmniOpMode_Linear extends LinearOpMode {
|
||||
|
||||
// Declare OpMode members for each of the 4 motors.
|
||||
|
@ -38,22 +38,23 @@ public class PedroConstants {
|
||||
public static final String BACK_ENCODER = "encoder back";
|
||||
|
||||
// Robot encoder direction
|
||||
public static final double LEFT_ENCODER_DIRECTION = Encoder.FORWARD;
|
||||
public static final double LEFT_ENCODER_DIRECTION = Encoder.REVERSE;
|
||||
public static final double RIGHT_ENCODER_DIRECTION = Encoder.FORWARD;
|
||||
public static final double BACK_ENCODER_DIRECTION = Encoder.REVERSE;
|
||||
|
||||
/*
|
||||
Pedro's parameters
|
||||
*/
|
||||
// -0.0708
|
||||
|
||||
// The weight of the robot in Kilograms
|
||||
public static final double ROBOT_WEIGHT_IN_KG = 10.5;
|
||||
|
||||
// Maximum velocity of the robot going forward
|
||||
public static final double ROBOT_SPEED_FORWARD = 72.0693;
|
||||
public static final double ROBOT_SPEED_FORWARD = 61.7259;
|
||||
|
||||
// Maximum velocity of the robot going right
|
||||
public static final double ROBOT_SPEED_LATERAL = 24.1401;
|
||||
public static final double ROBOT_SPEED_LATERAL = 2;
|
||||
|
||||
// Rate of deceleration when power is cut-off when the robot is moving forward
|
||||
public static final double FORWARD_ZERO_POWER_ACCEL = -74.3779;
|
||||
|
Reference in New Issue
Block a user