frontLeft, frontRight, backLeft, backRight
in your robot configuration (or pass your own names to the NeuronDrive constructor).pinpoint in your robot configuration
(or pass your own device name to NeuronLocalizer).The Pinpoint driver ships inside the stock FTC SDK itself, so this quickstart needs no
extra Gradle dependencies beyond what FtcRobotController already provides.
Clone this repo (or download it as a zip from GitHub) and open the folder in Android Studio as an existing project ("Open").
git clone <this-repo-url>
Build once (Build > Make Project) before doing anything else, to confirm Android Studio,
the SDK, and Gradle are all happy on a clean checkout.
TeamCode/.../neuronpathing/ the library: Pose2D, Spline, NeuronLocalizer, NeuronDrive, ...
TeamCode/.../opmodes/ example OpModes built on the library
tools/neuron-path-planner.html the visual path planner (open it directly in a browser)
docs/ this documentation
DcMotorEx entries named frontLeft, frontRight, backLeft, backRight
(or your own names; see below).pinpoint (I2C).java
NeuronLocalizer localizer = new NeuronLocalizer(hardwareMap, telemetry,
/*xOffsetMm=*/ -78.74, /*yOffsetMm=*/ -184.15);
NeuronDrive drive = new NeuronDrive(hardwareMap, localizer, /*trackWidthIn=*/ 14);
trackWidthIn is the distance between your left and right wheel contact points, in
inches; measure your actual robot, don't guess.
If your hardware config uses different motor names than the default four, use the longer constructor instead:
java
NeuronDrive drive = new NeuronDrive(hardwareMap, localizer, trackWidthIn,
"myFrontLeft", "myFrontRight", "myBackLeft", "myBackRight");
java
localizer.setPosition(new Pose2D(0, 0, 0)); // wherever your robot actually starts
localizer.calibrate(true);
drive.update() every loop. That's it: drive.pose now tracks the robot's
field position, and drive.goToPoint() / drive.splineToPoint() will drive there.None of this will behave correctly yet on a fresh robot: the offsets, motor directions, and PID gains above are all starting points. Follow Tuning next before trusting any of it in a match.