Frc software questions

i am new at software so I don’t really know how to run a motor with pressing a button like X button or R1 button can somebody help me?

1 Like

If you’re brand-new to it, I’d recommending looking at some of the sample code programs, maybe start with Motor Controller, Tank Drive, or Tank Drive-XboxController.

Then, you can look at the command docs on WPILib.

I would somewhat disagree with jumping into command-based programming for someone completely new to robot programming.

I would recommend starting here:

1 Like

You can reach out to me by DM or via email . As a team we have weekly Turkish Java for FRC lessons so I can arrange you to join if you want.

thank you so much i understand it

it would be awesome!!

and i undersrand the tank drive. So our team have mk4i swerve and they use didferenr team swerve code. But i dont know where i nees to write shoot the intake ect. Like presing R1 to run the motor if im send the giithub link can you realize where am i supposed to write?

yes if you can share the code it would be much easier to point out where you can add that

we are using this template but I downloaded again and there’s so much bug I don’t understand. whatever our code is working properly the main question is where am I write the where i need to write shoot the intake etc. Like pressing R1 to run the motor

button bindings are set in RobotContainer.java in the configureButtonBindings() method. are you familiar with command based programming? If not i recommend reading the official docs here: Command-Based Programming — FIRST Robotics Competition documentation

they also have a section explaining button bindings in the docs.

1 Like