Commit Graph

65 Commits

Author SHA1 Message Date
Keenan D. Buckley 5471e12403 Add CommandTest Template (Broken) 2020-04-11 14:02:37 -06:00
Keenan D. Buckley 63c6d3dea0 Cleanup code and improve Templates 2020-04-11 13:18:40 -06:00
Keenan D. Buckley fc82caf124 Extract RobotGyros to Prevent Resource Leak 2020-04-11 13:07:05 -06:00
Keenan D. Buckley af09668843 Restructure RobotGyroUtilityTest to be more modular 2020-04-11 12:58:28 -06:00
Keenan D. Buckley 2e8b5b5470 Add Subsystem Test Template 2020-04-11 12:43:42 -06:00
Keenan D. Buckley 344d97938c Merge branch 'templates' of https://github.com/Team4388/Robot-Essentials into templates 2020-04-11 12:40:00 -06:00
Keenan D. Buckley 8b081c8942 Add UtilityTest Template 2020-04-11 12:39:53 -06:00
Keenan D. Buckley 34245a8409 Merge branch 'master' into templates 2020-04-11 18:00:56 +00:00
Keenan D. Buckley 2cd7caf1fa Update gradle.yml 2020-04-11 18:00:28 +00:00
Keenan D. Buckley 3ad521ea9b Add Templates Extension 2020-04-11 11:50:13 -06:00
Keenan D. Buckley ec1d4a5230 Merge pull request #17 from Team4388/dependency-injection
Setup Unit Testing
2020-04-11 16:36:39 +00:00
Keenan D. Buckley 1ec273a39b Add tests for getRate() function in RobotGyro 2020-04-08 10:27:33 -06:00
Keenan D. Buckley a56ca65d14 Add tests for RobotTime class 2020-04-08 09:30:16 -06:00
Keenan D. Buckley 21566c6c15 Cleanup Code 2020-03-29 00:26:57 -06:00
Keenan D. Buckley d354ac078b Create Mock PigeonIMU and write more Unit tests
- Test to make sure the RoboyGyro class knows what kind of gyro its using
- Test to make sure all the getters for the gyro class work (at least for pigeon)
2020-03-29 00:10:06 -06:00
Keenan D. Buckley f06b36e443 Add LEDSubsystem Test 2020-03-28 23:16:04 -06:00
Keenan D. Buckley 7cad919e71 Improve Gyro Heading Test 2020-03-28 23:15:45 -06:00
Keenan D. Buckley 9be0a7fe48 Fix broken test 2020-03-28 22:49:32 -06:00
Keenan D. Buckley 57442554ad Broken test for testing the CI 2020-03-28 22:47:55 -06:00
Keenan D. Buckley 489d4a5bff Set up Mockito and simple Unit Test 2020-03-28 22:45:44 -06:00
Keenan D. Buckley e373211f27 Convert RobotTime into a singleton 2020-03-28 21:42:08 -06:00
Keenan D. Buckley 850f503889 Create RobotMap to decouple Subsystems from their hardware.
With the hardware objects decoupled from the subsystems, we can then pass mock hardware into these subsystems to run simulations/tests on.
2020-03-28 21:27:15 -06:00
Keenan D. Buckley 2e0330cab5 Merge pull request #9 from Team4388/add-gyro
Add Gyroscope to Robot Essentials
2020-03-28 04:26:18 +00:00
Keenan D. Buckley 2c5ae300b4 Example Usage of getRobotGyro
If you need to access an object from outside the subsystem, you should do this.
2020-03-27 13:44:10 -06:00
Keenan D. Buckley 17fbc03999 Changed subsystem variables to private where applicable
May need to be changed later, but try to use methods to access these variables instead of accessing them directly, as it fits better with the command based model and will be easier to rewrite should motors change, usage changes, etc.
2020-03-27 13:42:20 -06:00
Keenan D. Buckley 4271a66d1a Add basic getRate() functionallity for Pigeons 2020-03-27 12:32:46 -06:00
Keenan D. Buckley ecff989745 Create RobotTime
To keep track of deltas, frames, and times. Need it for completing pigeon gyro rates.
2020-03-27 12:20:22 -06:00
Keenan D. Buckley f310c8d90a Create the RobotGyro Object
Will allow for easily interchangable use of a pigeon or a navX. Just swap which gyro you pass RobotGyro. More advanced functionality like RemoteSensors with the pigeon and collision detection with the navX will have to be done by getting the gyro from RobotGyro and then using it.
2020-03-27 11:36:35 -06:00
Keenan D. Buckley e8be8ef16e Remove static declaration where applicable
Using these objects should instead be done by passing the needed subsystem reference in RobotContainer
2020-03-27 08:54:56 -06:00
Keenan D. Buckley d7956582d7 Update WPILib version 2020-03-27 08:51:17 -06:00
Keenan D. Buckley 7619a0be65 Update LICENSE so FIRST doesn't sue us 2020-02-17 10:45:36 -07:00
Keenan D. Buckley 15b5c9cecb Robot Work Now
Default commands didn't have a required subsystem, causing the program to crash on launch.
2020-01-10 21:30:36 -07:00
ryan123rudder f34fe096eb Merge pull request #8 from Team4388/inline-commands
Optimize Commands to Reduce Uneeded Verbosity
2020-01-07 11:06:51 -07:00
Keenan D. Buckley 1f35e8831a Replaced LED Commands with Inline Commands 2020-01-05 21:26:49 -07:00
Keenan D. Buckley 48e2e2238a Replaced DriveWithJoystick with Inline Command 2020-01-05 21:07:16 -07:00
Keenan D. Buckley 732a849a5a Add Documentation to Commands in RobotContainer.java 2020-01-05 21:06:38 -07:00
Keenan D. Buckley 5054e32dcb Merge branch 'master' into inline-commands 2020-01-06 03:50:59 +00:00
Keenan D. Buckley e0478d2f0d Change GamerMove into an inline command 2020-01-05 20:47:09 -07:00
Keenan D. Buckley 3f738b499c Merge pull request #7 from Team4388/shrink-code
Cleanup Code and Documentation
2020-01-06 03:42:16 +00:00
Keenan D. Buckley 1ae7a3abaa Remove Unusable Code 2020-01-05 20:27:47 -07:00
Keenan D. Buckley 7e57cf8f2d Added "Add your docs here" flags to all needed methods
- All methods that need javadoc have been marked with

/**
 * Add your docs here.
 */
2020-01-05 20:27:01 -07:00
Keenan D. Buckley f466abead2 Move LEDPatterns.java to utility 2020-01-05 20:23:52 -07:00
Keenan D. Buckley ee9c2c754f Merge pull request #6 from Team4388/2020-framework-update
2020 Framework Update
2020-01-06 02:21:34 +00:00
Keenan D. Buckley c16c8ba395 Merge branch 'master' into 2020-framework-update 2020-01-06 02:08:05 +00:00
Keenan D. Buckley c52bbdd2ee Implement new Command Based Framework 2020-01-05 18:59:50 -07:00
Keenan D. Buckley 6fb373969d Implement new RobotContainer.java and Constants.java Classes
- OI.java has been deprecated and replaced with RobotContainer.java
- RobotMap.java has been deprecated and replaced with Constants.java
- Changes have been made to use the new classes without errors; some of these changes will be changed in the future
2020-01-05 17:35:52 -07:00
Keenan D. Buckley ec2412a31e Removed unused lines of code 2020-01-05 11:03:40 -07:00
Keenan D. Buckley ff7d17809c Import 2019 into 2020 2020-01-05 11:01:43 -07:00
Keenan D. Buckley d41880191c Merge pull request #5 from Team4388/meme-1
Joe
2020-01-05 16:21:16 +00:00
Keenan D. Buckley a9c60ff35b Add meme text on robot init 2019-12-27 15:34:53 -07:00