Commit Graph

104 Commits

Author SHA1 Message Date
Jonathan Leitschuh
85d9ead4e2 Sets the default PIDSourceParameter to be kDistance so there is no null pointer exception
Change-Id: Ice4889ea3f6fd5afe6984f9715758a178222837f
2014-06-11 11:11:01 -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
Jonathan Leitschuh
59a1fb2c08 Makes the PIDController completely thread safe and ensures that freeing the PID Loop truly clears it [artf2567]
Change-Id: I96502e1d58bb4353ab5f53086dd275f3c372a7af
2014-06-10 15:44:18 -04:00
Jonathan Leitschuh
d418271a60 Updates the HAL to use the most recent control data [artf2557]
Change-Id: I4fa8713aa6fd290c4f025db2dce305a538efd564
2014-06-10 15:39:16 -04:00
Thomas Clark (WPI)
32dc451a72 Merge "Fixes the Preferences putting the preferences in a file 'file:' and instead puts it in the root directory [artf2566]" 2014-06-10 12:36:44 -07:00
Jonathan Leitschuh
63ae47b7e4 Fixes the Preferences putting the preferences in a file 'file:' and instead puts it in the root directory [artf2566]
Change-Id: If532542f1a746bff6b34c9d92462cd1722b4ff05
2014-06-10 15:34:37 -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
thomasclark
59dfb4d216 Removed the old compressor code
Change-Id: Ia36724f42254d49238db687c62f339c2172ba582
2014-06-09 11:12:44 -04:00
thomasclark
cf798049ef Disable driver station at C++ program start
Change-Id: I56169344e1ee6e791a078de14655c91463bfafd0
2014-06-08 16:40:54 -04:00
thomasclark
a3e11f201e More C++ tests
Change-Id: I92ce014a8ebe1c3b97f27aa15476fc3101cc1f1c
2014-06-07 17:38:33 -04:00
Jonathan Leitschuh
09feff102f Integrates tests for Commands
Change-Id: I972bdba167c9f305532067303b6faf1042940ab3
2014-06-05 16:59:11 -04:00
Brad Miller (WPI)
97fead0732 Merge "Adds/Updates the JavaIntegrationTest Framework" 2014-06-05 09:21:11 -07: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
thomasclark
c937c409ae Made PIDController use pthreads in C++
Change-Id: I3d4d1aa912bf56faa1d5e150732da5e7b551077d
2014-06-05 11:54:35 -04:00
thomasclark
36470d3b7c Made Java PCMCompressor methods public
Change-Id: Id5988f8b70868d6b2c9b9060fd0d7435d69c7c58
2014-06-04 19:53:50 -04:00
thomasclark
4c61ab4ea3 Fixed C++ PWM values to be 16 bits 2014-06-04 11:06:37 -04:00
Brad Miller (WPI)
15c2798ded Merge "Don't do doubles" 2014-06-03 09:41:30 -07:00
Brad Miller (WPI)
1e3a5389ba Merge "Tilt pan camera test" 2014-06-03 09:40:34 -07:00
Jonathan Leitschuh
3227e779a1 Adds .cproject to the .gitignore to remove eclipse files
Change-Id: I0ed347905cd29054f88088d42a63b4559d89446d
2014-06-03 10:00:23 -04:00
thomasclark
2e39540f20 Tilt pan camera test
Change-Id: I4496c9940a5da0bd78d90f1a5b4a9ebea6597336
2014-06-02 17:34:10 -04:00
thomasclark
bb50f4b134 C++ testing
Made a toplevel directory for C++ and C++ tests

Change-Id: I4bc2074a7036ec7fe79568b411637a5bee9eb5b3

Added the C++ testing framework and one test

Change-Id: I1e80a1e16b251a49666820a9d4c8caa025da9785
2014-06-02 15:36:18 -04:00
Patrick Plenefisch
a3b65a6845 Don't do doubles 2014-05-30 20:24:04 -04:00
Brad Miller (WPI)
9a145db3d5 Merge "Updates the C++ servo class to have the PWM values that are on the spec sheet" 2014-05-30 11:42:27 -07:00
Jonathan Leitschuh
884a374f4e Updates the C++ servo class to have the PWM values that are on the spec sheet
Change-Id: I98eae31f91df912d17035c125b219d8a812e94f9
2014-05-30 14:19:57 -04:00
thomasclark
187aa7a138 Support for the CAN power distribution panel
Change-Id: If4f8f7f050bf1095221cf16f030a6a8a67532656
2014-05-30 14:11:42 -04:00
Brad Miller
bf7ef4376c Changed the default logging level to WARNING
This prevents excessive logging from the HAL. Put it back as needed

Change-Id: I217f8bf20dd092dd6205444b08c98c9a7c3c83de
2014-05-30 10:09:56 -04:00
thomasclark
5d21444c42 Fixed a missing include
Change-Id: I159dd15cd8f429343e9eda39c0cc49292618bae8
2014-05-29 18:37:31 -04:00
thomasclark
b219d19153 Fixed several files to use .hpp headers
Change-Id: I2a9ed167c18188b32a746e65dc3b08853b371dc4
2014-05-29 18:12:43 -04:00
Brad Miller (WPI)
2bf9db0019 Merge "Adds/Extends several integration tests. Modifies Java Servo with correct values according to the datasheet assoiciated with the Hitec HS-322HD" 2014-05-29 12:59:40 -07: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
thomasclark
447cec4df8 Support for the CAN pneumatics module in C++ and Java
Change-Id: Iba66f8b51d7471a60ec33d38354a2f0853cc31df
2014-05-29 15:01:07 -04:00
thomasclark
980d52becc Support for the CAN pneumatics module in C++ and Java
Change-Id: I2ccb1d13d1c5da00a99329c761b75a6c2b3ea56d
2014-05-29 14:43:19 -04:00
Patrick Plenefisch
9b831ed34c Reverting back to static .a files for C++ and fixing lots of other assorted items 2014-05-27 21:26:10 -04:00
thomasclark
c1482cb267 Made CAN actually work in Java
Change-Id: I90709799de02c4cf1800f57bbecd637c76b33469
2014-05-27 15:10:18 -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
Brad Miller (WPI)
609fbfd8f6 Merge "Adds the Accumulator code to the AnalogJNI.cpp Disables the debug printlines from the AnalogJNI.cpp file" 2014-05-22 10:47:29 -07:00
Jonathan Leitschuh
6d8629a8b3 Adds the Accumulator code to the AnalogJNI.cpp
Disables the debug printlines from the AnalogJNI.cpp file

Change-Id: Iac962721fb3eeca8f208feb162c96d5ae9f342a2
2014-05-22 13:28:54 -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
Brad Miller (WPI)
6b83175b74 Merge "Fixed the package for CANJaguar.java" 2014-05-21 10:21:11 -07:00
Brad Miller (WPI)
9925598da0 Merge "Updated POM files to allow use of compile phase." 2014-05-21 09:51:44 -07:00
thomasclark
9a29c684a0 Fixed the package for CANJaguar.java
Change-Id: I63180f21304535608b31b00e6bd19b53e93b12ee
2014-05-20 16:33:29 -04:00
Alex Henning (WPI)
66c9aabec7 Merge "Updated CANJaguar.h/.cpp/.java for the RoboRIO" 2014-05-20 13:04:51 -07:00
Brad Miller
736cb754f1 Updated POM files to allow use of compile phase.
Note that the eclipse plugins are no longer included in the build by
default. To clean or build the eclipse plugins, use
-Dwith-eclipse-plugins. When specifying this property, only phases
up to or after package may be run.
2014-05-16 16:42:26 -04:00
Thomas Clark (WPI)
b955ec9949 Merge "Adds maven configuration information to use m2e This also removes all of the .project and .classpath files generated by eclipse" 2014-05-16 12:02:11 -07:00
thomasclark
da2e1769c0 Updated CANJaguar.h/.cpp/.java for the RoboRIO
Change-Id: I5134a78dc9dc945be1402c78d4fc4b9ef368b0b8
2014-05-16 14:12:24 -04:00
Jonathan Leitschuh
85b0a46fdb Adds maven configuration information to use m2e
This also removes all of the .project and .classpath files generated by
eclipse

Change-Id: Ieedf3166a3194040704133909cc7d71755009714

Removes the .project and .classpath files from the project as the .gitignore should have
2014-05-15 19:27:32 -04:00
thomasclark
ed6ac3bffd Fixed digital channel routing
Change-Id: Id670db98c0aaa53a7b126a4fb42b736e25e18c4a
2014-05-15 17:55:21 -04:00
thomasclark
7e215ef181 Removed the old cRIO channel routing that was preventing encoders from working in C++
Change-Id: I6e103f9960a8bf0930ea7e40f668cad116363370
2014-05-15 11:13:21 -04:00