So I only know arcade and tank drive in Timed base but since my team is adding pneumatic system to our robot, I wanted to organize more in my code so I made a command based project. However, the plan for driving the robot is using two flight sticks to move so the two left motors is connected to joystick 1 and two right motors connected to joystick 2. Here is what I have so far:
In OI, I set up my two joysticks which is set up at RobotMap.joystickPort0 in RobotMap.
In RobotMap, I also set up the PMWs and USB.
In Robot.java, there’s nothing really set up yet except declaring the DriveSubsystem.
In DriveSubsystem, I did differential drive but stop cause I don’t know what to do next.
I stopped at drivesubsystem since I do not know where to go on next. Could anyone help me, first time coding this year.
NOTE: Don’t mind everything set up on public, I thought putting it on public was good but it defeats the purpose of command base so just pretend that it’s private (which is already is in VSCode).