This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.firstinspires.ftc.teamcode; | |
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode; | |
import com.qualcomm.robotcore.eventloop.opmode.TeleOp; | |
import com.qualcomm.robotcore.hardware.ColorSensor; | |
import com.qualcomm.robotcore.hardware.DcMotorEx; | |
@TeleOp(name = "SpindexerControlTest", group = "Examples") | |
public class SpindexerControlTest extends LinearOpMode { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.firstinspires.ftc.teamcode; | |
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode; | |
import com.qualcomm.robotcore.eventloop.opmode.TeleOp; | |
import com.qualcomm.robotcore.hardware.ColorSensor; | |
import com.qualcomm.robotcore.hardware.DcMotorEx; | |
@TeleOp(name = "SpindexerControlTest", group = "Examples") | |
public class SpindexerControlTest extends LinearOpMode { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.firstinspires.ftc.teamcode; | |
import com.qualcomm.robotcore.hardware.ColorSensor; | |
import com.qualcomm.robotcore.hardware.DcMotor; | |
import com.qualcomm.robotcore.hardware.DcMotorEx; | |
import com.qualcomm.robotcore.hardware.PIDFCoefficients; | |
import com.qualcomm.robotcore.util.ElapsedTime; | |
import org.firstinspires.ftc.robotcore.external.Telemetry; | |
public class Spindexer { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.firstinspires.ftc.teamcode.pedroPathing.follower; | |
import static org.firstinspires.ftc.teamcode.pedroPathing.tuning.FollowerConstants.drivePIDFFeedForward; | |
import static org.firstinspires.ftc.teamcode.pedroPathing.tuning.FollowerConstants.drivePIDFSwitch; | |
import static org.firstinspires.ftc.teamcode.pedroPathing.tuning.FollowerConstants.forwardZeroPowerAcceleration; | |
import static org.firstinspires.ftc.teamcode.pedroPathing.tuning.FollowerConstants.headingPIDFFeedForward; | |
import static org.firstinspires.ftc.teamcode.pedroPathing.tuning.FollowerConstants.headingPIDFSwitch; | |
import static org.firstinspires.ftc.teamcode.pedroPathing.tuning.FollowerConstants.lateralZeroPowerAcceleration; | |
import static org.firstinspires.ftc.teamcode.pedroPathing.tuning.FollowerConstants.leftFrontMotorName; | |
import static org.firstinspires.ftc.teamcode.pedroPathing.tuning.FollowerConstants.leftRearMotorName; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.firstinspires.ftc.teamcode.pedroPathing.localization; | |
import com.qualcomm.robotcore.hardware.IMU; | |
import org.firstinspires.ftc.teamcode.pedroPathing.pathGeneration.Vector; | |
/** | |
* This is the Localizer class. It is an abstract superclass of all localizers used in Pedro Pathing, | |
* so it contains abstract methods that will have a concrete implementation in the subclasses. Any | |
* method that all localizers will need will be in this class. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.firstinspires.ftc.teamcode.pedroPathing.localization; | |
import com.qualcomm.hardware.lynx.LynxModule; | |
import com.qualcomm.robotcore.hardware.HardwareMap; | |
import com.qualcomm.robotcore.hardware.IMU; | |
import org.firstinspires.ftc.robotcore.external.navigation.AngleUnit; | |
import org.firstinspires.ftc.teamcode.pedroPathing.localization.localizers.PinpointLocalizer; | |
import org.firstinspires.ftc.teamcode.pedroPathing.pathGeneration.MathFunctions; | |
import org.firstinspires.ftc.teamcode.pedroPathing.pathGeneration.Vector; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.firstinspires.ftc.teamcode.pedroPathing.localization.localizers; | |
import android.util.Log; | |
import com.qualcomm.robotcore.hardware.HardwareMap; | |
import com.qualcomm.robotcore.util.ElapsedTime; | |
import com.qualcomm.robotcore.util.RobotLog; | |
import org.firstinspires.ftc.robotcore.external.navigation.AngleUnit; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.firstinspires.ftc.teamcode.opmode.teleops; | |
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode; | |
import com.qualcomm.robotcore.eventloop.opmode.TeleOp; | |
import com.qualcomm.robotcore.hardware.Gamepad; | |
import org.firstinspires.ftc.teamcode.subsystem.MyIntake; | |
@TeleOp(group = "Drive", name = "My Manual Drive") | |
public class MyTeleOps extends LinearOpMode { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// use front camera for team prop and back camera for the apriltag and yellow preload detection | |
// Must set the ViewId for each portal | |
// Can't enable live View, won't work if enabled | |
// use scrcpy to see both livestreams | |
// on the driver hub/phone, the livestream of the last Portal initialized is shown | |
protected void initVisionPortal() { | |
int[] visionPortalViewIDs = VisionPortal.makeMultiPortalView(2, | |
VisionPortal.MultiPortalLayout.HORIZONTAL); |