Peter Johnson
3365d0dc18
Fix Java Joystick.getPOV().
...
It subtracts 1 from pov; this should not be done here as it is done in the
DriverStation class.
Change-Id: I7fba2c87fc4dcb2f693201346b0d935662a49678
2014-10-18 09:22:58 -07:00
Brad Miller (WPI)
436c92961b
Merge "Add new joystick features"
2014-10-17 14:08:49 -07:00
Brad Miller (WPI)
5db5320793
Merge "Add method to get Device ID to Can Jaguar (fixes artf3613)"
2014-10-17 13:46:07 -07:00
Brad Miller (WPI)
54eaa913f6
Merge "Make Java ignore section headers in Preferences file and start file with [Preferences] to match C++ (fixes artf3629)"
2014-10-17 13:45:34 -07:00
Thomas Clark
8a541a67ca
Add new joystick features
...
Axis counts other than six and POVs are both present in C++ and Java now
Add dynamic joystick axis counts, up to 12
Change-Id: Ieade5e61a89df822df8702cb32326e4635558778
Add support for POVs in C++
Change-Id: I12dc0fcaca605a256ddcf990eebde45767229171
Make POVs work in Java
Change-Id: Ie2d98adb416c1930f058bdd21c3e7d26289df503
2014-10-17 16:39:10 -04:00
Brad Miller (WPI)
7fa0eea492
Merge "ADXL345_SPI: Report usage."
2014-10-17 12:19:47 -07:00
Kevin O'Connor
4e31b68008
Add method to get Device ID to Can Jaguar (fixes artf3613)
...
Change-Id: I7b0cb555a56ee97cf90ea32a3080b7c14bb5ca56
2014-10-15 16:11:29 -04:00
Kevin O'Connor
dad3b68f36
Make Java ignore section headers in Preferences file and start file with [Preferences] to match C++ (fixes artf3629)
...
Change-Id: Ia56cca061851727eee25d3996314a01022378a07
2014-10-15 14:37:25 -04:00
Peter Johnson
ce768ae341
ADXL345_SPI: Report usage.
...
Change-Id: I369a3aecf36fc9071b10cbacc1ebac5f98c1dd39
2014-10-12 14:38:02 -07:00
Peter Johnson
fcc8230dbf
Counter::setUpSource(AnalogTrigger): actually set the source.
...
Previously this created the output but didn't set up the source.
Change-Id: Ifac7ed589358e15bc70ba46ae4a756ce56683a8a
2014-10-10 09:15:42 -07:00
Thomas Clark
eca4d36a4b
Disable CANJaguar current PID test
...
The hardware setup makes this test basically useless
Change-Id: I40287313a1928dda897c8e35922216d44ab089d2
2014-10-08 15:02:01 -04:00
Brad Miller (WPI)
cb81aa6fe9
Merge "Update headers and .sos to v15 image + most API changes"
2014-10-07 07:22:14 -07:00
Thomas Clark (WPI)
ace43a6a12
Merge "DigitalOutput: Fix enablePWM()."
2014-10-07 07:18:19 -07:00
Peter Johnson
a65cb500fb
Relay: In free(), set both forward and reverse to 0.
...
Also, check status in between the two calls.
Change-Id: I5a6c24aefde3707a953a41cb7c56e8fb372e1ea0
2014-10-06 00:31:46 -07:00
Peter Johnson
f27df43b5b
DigitalOutput: Fix enablePWM().
...
Previously enablePWM() wanted m_pwmGenerator to already be non-null on entry.
This is impossible as the only place m_pwmGenerator is set is later in this
function.
Also add correct m_pwmGenerator null checks to disablePWM() and
updateDutyCycle().
Change-Id: Ia5bbfdc62824e1cf4c2f503308313b7ef39ae2fe
2014-10-05 20:51:57 -07:00
Thomas Clark
7e9f183cf9
Update headers and .sos to v15 image + most API changes
...
Java still does not work
Change-Id: I172ac401a07b6703909068f82b7b6cc67e6075c0
2014-10-05 17:17:59 -04:00
Brad Miller (WPI)
c11f194cbf
Merge "Allow dataRecieved to be null in I2C transaction (fixes artf3603)"
2014-10-02 11:48:22 -07:00
Kevin O'Connor
64abdb8223
Allow dataRecieved to be null in I2C transaction (fixes artf3603)
...
Change-Id: I02fb5ba8c5e0677b710a8bd63e98a4851c52883e
2014-10-01 14:47:16 -04:00
Brad Miller
1cef27134e
Changed joystick port numbers to be zero-based for C++ and Java.
...
Change-Id: Ifd55e8654be3b15abbe7460d2e9e6fff8acd9977
2014-10-01 11:25:51 -04:00
Kevin O'Connor
d72ee199fe
Squashed commit of the following:
...
commit a3ccfab0a42414aa169792356bfc47ee8d0d2d7b
Author: Kevin O'Connor <koconnor@usfirst.org >
Date: Tue Sep 23 13:56:59 2014 -0400
Implement zero latch (used to reduce brownout latency) in Java
Change-Id: I3bf4ffbf20cf3d8a42da4fa1755b4306c49ede34
commit 0af37dfcc0d1172974519c44126973c302385d55
Author: Kevin O'Connor <koconnor@usfirst.org >
Date: Tue Sep 23 13:03:07 2014 -0400
Implement zero latch (used to improve brownout latency) in C++
Change-Id: I62bedd1af65d367c32e2ab0b5a4fc679776eecb5
Change-Id: Ic27f37a9ab45aad82c1f7154d4edfbccfaa19229
2014-09-26 17:20:57 -04:00
Patrick Plenefisch
39da9d67ba
JNI should ignore -lfrc and installing the new ld scripts
...
Change-Id: I6b5d2767a0148bd01246c6a205ba32d30440b3d5
2014-09-26 12:13:28 -04:00
Thomas Clark
a548b14b7e
Add a getDeviceNumber method to CANJaguar
...
[artf3613]
Change-Id: Idc01c0d27740bbb575f00de6065a7ced52f787e1
2014-09-24 14:37:07 -04:00
Thomas Clark
b16a037759
Store preferences in a directory writable by lvuser
...
Change-Id: I1ed43968c2be76bfcb050a115f59517c398efff3
2014-09-10 14:05:51 -04:00
Brad Miller
1e812ac4d9
Added comments to the compressor class per artf3527.
...
Change-Id: I48d0d16242da064e8502e6fbddccca82dc680044
Updated comments with a few more details
Change-Id: Icab1698f2ea4e2032e50cbf5ac63341ba5ee1dcf
2014-09-10 12:02:13 -04:00
Brad Miller (WPI)
ecc6815f68
Merge "Fix status buffer allocation in SolenoidBase"
2014-09-10 08:57:53 -07:00
Thomas Clark
debf9e0ee9
Make all channel errors throw IndexOutOfBounds
...
Only relay and PWM channels out of range used to throw
IndexOutOfBoundsExceptions, but Resource would catch the error
first in most cases.
Change-Id: I8feb0daf378e181f982203d46bf5a10dbde4a02e
2014-09-10 11:54:57 -04:00
Thomas Clark
15abbb36c2
Fix status buffer allocation in SolenoidBase
...
This fixes [artf3488] and [artf3506]
Change-Id: I6e89fc7bfc8d6c38a4bbf364a0fad412ab54e225
2014-09-10 11:36:50 -04:00
Joe Ross
da2ea9ea87
remove/fix references to cRIO documentation.
...
Edited comments related to sidecar, breakout, 9472. Some references were
to unused methods in simulation that were removed.
Change-Id: I99b6fe9e8cb982831ffbf29177f84e2f9f71ef47
2014-08-30 08:56:06 -07:00
Jonathan Leitschuh
b1ace79379
Fixes the MotorEncoderTest sometimes failing because a counter registers movement from the jaguar after reset.
...
Change-Id: I65b24e59a902637b19b24c08f0a02b86621c5590
2014-08-29 16:46:08 -04:00
Jonathan Leitschuh
2a8ade093a
Adds the ability to run test classes with --repeat rule.
...
Fixes a bug in several tests where --repeat wouldn't work due to multiple teardown calls.
Change-Id: I26f9350e9c7da6e9b0aefd1ecefb7e8d8975a641
2014-08-29 16:34:03 -04:00
Brad Miller (WPI)
b7458e7ba6
Merge "Make Talon the default speed controller for RobotDrive"
2014-08-29 10:53:30 -07:00
Thomas Clark
3fddee51c2
Make Talon the default speed controller for RobotDrive
...
Change-Id: I87047e11efb26f5081a3e23dc8f36fa9bb76a88c
2014-08-29 13:00:48 -04:00
Brad Miller (WPI)
21967fcb24
Merge "Fixes testing framework typos & adds rule to keep unix line endings for .sh"
2014-08-29 09:56:51 -07:00
Thomas Clark
9b896eab70
Make DoubleSolenoid work in Java [artf3457]
...
Make DoubleSolenoid and Solenoid use SolenoidBase, like in C++.
Add an integration tests for double solenoids.
Change-Id: I9a7ff562d65a564c5adabfa73f85f23ad466215b
2014-08-29 12:50:44 -04:00
Jonathan Leitschuh
67cb854676
Fixes testing framework typos & adds rule to keep unix line endings for .sh
...
Change-Id: I33826b879ba2dce7da88aa399d37f711a6612d86
2014-08-29 11:40:03 -04:00
Kevin O'Connor
c9f6fcd969
Fix artf3447 Java only runs teleop - Correct off by one error in Control Word compares
...
Change-Id: I5965008ac75a9c3cc3a3473fa775729421b8957c
2014-08-27 15:22:20 -04:00
Jonathan Leitschuh
47169e0ce1
Adds test scripts to deploy, run and retrieve results from integration tests.
...
Adds a simple script for jenkins to run to retrieve the test results from.
Adds a script that allows developers to download and run tests from a specific language easily.
Adds a script that allows the tests to be run from within an ssh session on the roborio.
Change-Id: Ibe6ddc4e1dcbb8192e6552c3901e96f6907a8020
2014-08-26 11:20:02 -04:00
Alex Henning (WPI)
52e358c180
Merge "Add Preferences to simulation"
2014-08-23 11:12:34 -07:00
Jonathan Leitschuh
f9ab84d912
Integration tests now run with the Ant Junit test framework.
...
Removes TestNG as it wasn't reporting all of the tests correctly. Adds Ant as a dependency and uses it to run the JUnit tests so that tests are output in a way that Jenkins understands.
Change-Id: Ie98358476cebe94f233e687195a0fced8723a878
2014-08-21 15:29:17 -04:00
Joe Ross
04fadb85f5
Add Preferences to simulation
...
Change-Id: Id2891dac25ab6a929b5b90164cc5ecef49f40906
2014-08-20 21:07:12 -07:00
Jonathan Leitschuh
8ba0eada17
Adds interrupts to Java
...
Implements the JNI bindings for java
Adds integration tests for Digital Inputs and AnalogTriggers.
Adds the ability to get the value and message from errno in java using the HALUtil JNI class.
Change-Id: I853529fdab9744ce95ee15d4cc73dc3953265552
2014-08-20 16:10:40 -04:00
Thomas Clark
4215d1c79b
Fix Java IT build
...
The Java ITs should have jcommander as a dependency
Change-Id: Ide03fb245d21b21643bf7a9de6248db12dc54460
2014-08-18 15:52:13 -04:00
Thomas Clark
687bc44ae5
Add new CTRE classes and update PDP tests
...
Change-Id: I489091c5b8b0f1f9890e5104bf01e40ae53cf6ce
2014-08-18 10:32:26 -04:00
Thomas Clark
6d89974016
Make Java tests run with TestNG
...
TestNG generates xml reports that Jenkins can use, JUnit does not without
Ant or Maven.
To run the tests, deploy the Jar and run:
/usr/local/frc/JRE/bin/java -jar wpilibJavaIntegrationTests-0.1.0-SNAPSHOT.jar -junit -testclass edu.wpi.first.wpilibj.test.TestSuite
Change-Id: I9e8a7dcab775f9c5ad1905afa798cd9191e25438
2014-08-15 16:40:56 -04:00
Alex Henning
eded28ebfa
Fixed bug with joystick buttons/axes out of range.
...
Change-Id: I85f0a9f47dfbb786f850c1f382c0e18a4e4b8254
2014-08-15 10:29:39 -04:00
Alex Henning
0f8f83500b
Merged sources in wpilibJavaFinal.
...
Change-Id: Iab8d079716eae3e5631cf7a62d6e88340e55e03c
2014-08-12 14:59:16 -04:00
Alex Henning
1301d76d61
Fixes for HLUsageReporting due to Jonathan's exceptions.
...
Change-Id: I28d6719d0b8f5a71186f6a764c9541277aea6237
2014-08-11 14:59:21 -04:00
Thomas Clark
14b2f14669
Merge "Implement DriverStation::GetBatteryVoltage"
2014-08-11 08:56:52 -07:00
Thomas Clark
d2cd5f3571
Implement DriverStation::GetBatteryVoltage
...
Make the GetBatteryVoltage method work using the new tPower header
Change-Id: If504f8a46f3f7f737f0b729b72fc6b5da0d29ff9
2014-08-11 11:56:10 -04:00
Alex Henning (WPI)
81143fc534
Merge "Adds Exception throwing the basic robot systems are not properly initialized."
2014-08-11 08:53:37 -07:00