RobotCasserole1736 / RobotCasserole2020

Software for Robot Casserole's 2020 FIRST Infinite Recharge competition season
MIT License
1 stars 0 forks source link

Implement Imaginary Drivetrain #7

Closed gerth2 closed 4 years ago

gerth2 commented 4 years ago

Using 2019's code as a reference, implement the Imaginary Drivetrain class.

https://github.com/RobotCasserole1736/RobotCasserole2019/blob/master/Robotcode/RobotCode2019/src/main/java/frc/robot/DrivetrainSim.java

https://github.com/RobotCasserole1736/RobotCasserole2019/blob/master/Robotcode/RobotCode2019/src/main/java/frc/robot/RobotPose.java

It can mostly be copy-paste.

Integrate such that the appropriate update() methods are called in the teleopPeriodic() method in Robot.java.

To test: In teleop periodic, add a call to the setClosedLoop... function with 5 ft/sec on each wheel. Run the code in simulation. Load up the robot webpage (should be at localhost:5805). Look at the webpage which shows the robot position, and see it moving forward across the field.

Change up what the wheel velocity commands are, and observe the robot move differently.

Treecko120 commented 4 years ago

I think Chris finished this.

NathanHuut commented 4 years ago

I think so too. He said he would finish it up for me