Basic configuration steps

This commit is contained in:
robotics1
2024-10-17 12:18:56 -07:00
parent 0c8db615eb
commit 5d94363715
3 changed files with 4 additions and 26 deletions

View File

@ -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) }
}
)
}

View File

@ -73,7 +73,6 @@ import com.qualcomm.robotcore.util.ElapsedTime;
*/ */
@TeleOp(name="Basic: Omni Linear OpMode", group="Linear OpMode") @TeleOp(name="Basic: Omni Linear OpMode", group="Linear OpMode")
@Disabled
public class BasicOmniOpMode_Linear extends LinearOpMode { public class BasicOmniOpMode_Linear extends LinearOpMode {
// Declare OpMode members for each of the 4 motors. // Declare OpMode members for each of the 4 motors.

View File

@ -38,22 +38,23 @@ public class PedroConstants {
public static final String BACK_ENCODER = "encoder back"; public static final String BACK_ENCODER = "encoder back";
// Robot encoder direction // 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 RIGHT_ENCODER_DIRECTION = Encoder.FORWARD;
public static final double BACK_ENCODER_DIRECTION = Encoder.REVERSE; public static final double BACK_ENCODER_DIRECTION = Encoder.REVERSE;
/* /*
Pedro's parameters Pedro's parameters
*/ */
// -0.0708
// The weight of the robot in Kilograms // The weight of the robot in Kilograms
public static final double ROBOT_WEIGHT_IN_KG = 10.5; public static final double ROBOT_WEIGHT_IN_KG = 10.5;
// Maximum velocity of the robot going forward // 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 // 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 // Rate of deceleration when power is cut-off when the robot is moving forward
public static final double FORWARD_ZERO_POWER_ACCEL = -74.3779; public static final double FORWARD_ZERO_POWER_ACCEL = -74.3779;