Commit Graph

15 Commits

Author SHA1 Message Date
Jonathan Leitschuh
aa3b24092a Adds several more tests to the PID Test Class
Adds Logger output to tests when they fail to allow the rest of the tests to run while you can follow the failure stack trace. This allows you to begin working on fixing the failure before the remainder of the tests have run.

Change-Id: I84adfad0b31b166f027d0bf9797a23856dd02f97
2014-06-13 15:03:38 -04:00
Brad Miller (WPI)
d5a509c7e7 Merge "Changed AnalogChannel to AnalogInput, added AnalogOutput for MXP" 2014-06-12 15:10:31 -07:00
thomasclark
3538e2c05c Changed AnalogChannel to AnalogInput, added AnalogOutput for MXP
Change-Id: I863d89c61ff2cf4a7a3aeeca1296978e728758b6
2014-06-12 18:08:20 -04:00
Jonathan Leitschuh
a4708d850c Makes the PID Test run 10 times in order to determine how many times it fails out of 10 runs per motor. (Unstable Test!)
Change-Id: I74b62f6b9ff0b932b7118562c38e8c5c9d0960f9
2014-06-12 18:02:09 -04:00
Jonathan Leitschuh
a46c246587 Moves the Talon to port 10 to reflect the hardware change
Change-Id: I40e85f52031fec27e0715c2d92510030dd4bdc8d
2014-06-12 17:55:58 -04:00
Jonathan Leitschuh
8b19137ca6 WPILibJ More Integration Tests
Refactors the MotorEncoderTest to make use of the parameterized testing framework
Adds a test for the Preferences Class
Updates the TiltPanCameraTest to work
Makes the TimerTest use math for long values
Adds a Button Test to Test the internal Button
Speeds up the FakeCounterSource/FakeEncoderSource to decrease test time
Moves the AbstractComsSetup Block to a static method so that it only runs once
Updates the logging.properties class so that tests are quieter

Change-Id: I70b39f34122e6398f406a63e6ef04cde9fbe95ef
2014-06-11 14:43:59 -04:00
Jonathan Leitschuh
eb00824a51 Updates the MotorEncoder and TestBench to clarify where setup/teardown methods are called
Change-Id: I71fd69e03b2d336297aa6769238d3e422fe38dc4
2014-06-10 16:09:56 -04:00
Kacper Puczydlowski
c90c38fa25 Adds a PIDTest to the integration tests. Contributors: Jonathan Leitschuh [artf2568]
Change-Id: Ibcbd1774360545f9d08ec3a8917613f2b2d335ee
2014-06-10 15:50:21 -04:00
thomasclark
35ac240d4c Switch to 0-based for all pins on the RoboRIO [artf2564]
Change-Id: I249965a9d55aec53b7d8a9be3ba5cc43500ddda4
2014-06-10 12:44:29 -04:00
Jonathan Leitschuh
09feff102f Integrates tests for Commands
Change-Id: I972bdba167c9f305532067303b6faf1042940ab3
2014-06-05 16:59:11 -04:00
Jonathan Leitschuh
70ccca881c Adds/Updates the JavaIntegrationTest Framework
Modifies where the tilt-pan camera gets instantiated so that it can be used for multiple tests

Adds a test for counters

Updates the TestBench and TestSuite to reflect the physical changes to the board

Adds a test on the Digital Cross Connections

Adds a test on the counter to see if they are working properly

Increases the reset time on the TiltPan Fixture to allow it to calibrate correctly

Fixes the wasReset flag being calculated with a bitshift instead of using boolean algebra.

Adds/Updates Integration Tests
Introduces java.util.logging to the test framework to allow for easier debugging
Fully tests all DIO/Counter/Encoder features
Pulls in Command Tests from the old testing framework

Updates the build.xml to run the Ant Compiler with 1.7 if Java 1.8 is installed

Change-Id: I43d85054be393ef448643c1d35558cfa99749c99
2014-06-05 12:00:56 -04:00
Jonathan Leitschuh
efeec5d986 Adds/Extends several integration tests. Modifies Java Servo with correct values according to the datasheet assoiciated with the Hitec HS-322HD
Changes the format of the MotorEncoderFixture usage. Also adds a motor type to easily determine what speed controller is being used

Adds a TiltPanCameraTest to test the Gyroscope as well as the servo classes

Updates the TestBench and the TestSuite to reflect the new tests and the changes to these Tests

Begins integrating a test to check to see if counters and encoders are working correctly

Modifies the ServoClass to have the correct data for PWM generation.
Also  modifies the PWM class to make the setBounds method to be protected

Modifies the TiltPanTest to rotate slower and reduces the acceptable deviation

Reduces the runtime of the MotorEncoderTest by lowering the runtime value

Updates the TestBench to load the Gyroscope before allocating the servos in order to allow for setup time
Also adds Documentation

Reorders the Tests to run the TiltPanTest first

Adds/Updates the copywright header to several files that were previously modified in this commit

Change-Id: I093f998d9687c6b6c6b8d4f6949fbe56ba236212
2014-05-29 15:19:02 -04:00
Jonathan Leitschuh
db940d8c43 Adds Integration tests for WPILib
-Jaguar Speed Controller
-Tallon Speed Controller
-Victor Speed Controller
-Encoder
-Counter
-Timer

Change-Id: Ia0d7e6e05652ea2c5bb004ae5bc59e6e615f8396
2014-05-23 14:19:48 -04:00
Jonathan Leitschuh
8599830490 Added in LiveWindow initialization code, and the network tables
dependecies for WPILibJ. - Fredric Silberberg

Change-Id: I776096385dc13db64c9eb2adbe0397b632057adf
2014-05-22 15:42:56 -04:00
Fredric Silberberg
04b6afb1cb WPILibJ Integration Tests
This is the first commit to add the WPILibJ integration test framework.
This creates a project called wpilibJavaIntegrationTests, which is will
create testing framework when running the maven package target. This
framework will need to have the TestBench.java file updated to match
the testing harness set up at WPI. Tests must currently be run manually.

Change-Id: I09fe0278580751e813af591c15b9079360089987
2014-05-22 10:55:17 -04:00