MeepMeep - ftc8380/coding-guide GitHub Wiki

While the hardware team builds the robot, you can start getting accustomed to Roadrunner with the help of a tool called MeepMeep. MeepMeep should be already installed on 8380's custom SDK's, but instructions on installing it if it isn't there will follow.

Running MeepMeep

Provided it's already installed, just go to the top right of Android Studio where it says TeamCode. Change it to something like TrajectoryPlanner or MeepMeepTesting

TrajectoryPlanner

Now hit the green play button. If all goes well, a window will soon pop up with a moving robot. Awesome!

Testing trajectories

Now try to find the TrajectoryPlanner or MeepMeepTesting class in the project view on the left:

Planner class

You'll know that you've found the right file if you see code like

RoadRunnerBotEntity myBot = new DefaultBotBuilder(meepMeep)
                // Set bot constraints: maxVel, maxAccel, maxAngVel, maxAngAccel, track width
                .setConstraints(60, 60, Math.toRadians(180), Math.toRadians(180), 15)
                .followTrajectorySequence(drive ->
                        drive.trajectorySequenceBuilder(new Pose2d(0, 0, 0))
                                .forward(30)
                                .turn(Math.toRadians(90))
                                .forward(30)
                                .turn(Math.toRadians(90))
                                .forward(30)
                                .turn(Math.toRadians(90))
                                .forward(30)
                                .turn(Math.toRadians(90))
                                .build()
                );

Trajectories

Read these parts of the Roadrunner guide, in order:

The TrajectoryBuilder function list will be your reference.

See what you can do with MeepMeep! Ask the lead programmer for help as needed.