Brad Miller (WPI)
e487c950e9
Merge "Only create one tGlobal object"
2014-07-25 08:51:32 -07:00
Thomas Clark
191e9d5d6b
AnalogInput::PIDGet returns an average voltage[artf2391]
...
Previously it returned a raw value instead of a voltage.
Change-Id: Ia7f06ca24a6c79468c7be89a07c615d7015ffef9
2014-07-25 09:41:06 -04:00
thomasclark
40fc8326aa
Only create one tGlobal object
...
This fixes a problem with getFPGATime() blocking for around 1 second
each time it's called.
Change-Id: I8aafb725889c231ffb2c91e7cb4bbb8110474a9d
2014-07-24 18:30:13 -04:00
thomasclark
fdbe750d3d
A few small changes to the C++ ITs
...
A PDP channel number is correct now, the deploy script was changed to
kill Java programs before running and ignore useless messages,
the "Waiting for enable" message is only printed once, and the accelerometer
test is more robust.
Change-Id: I2226140d8c3e44c452e039c27f4f1cf11c952c42
2014-07-24 18:22:31 -04:00
Jonathan Leitschuh
3ec797a8cf
Updates the CANJaguar to free itself before throwing an exception in the constructor. This allows it to be allocated later without throwing an Allocation exception.
...
Change-Id: Ifbd15fecad92fa17a1c4b92d444b67221dacb4b5
2014-07-24 16:55:27 -04:00
Jonathan Leitschuh
78e6cf7208
Updates the AbstractComsSetup message to report JUnits multiple exceptions correctly.
...
Adds a simple logger to the AbstractComsSetup that prints messages to the console based on the log level.
Replaces all System.out prints with TestBench.out()
Change-Id: Ieb7acfe51aa2febe9cfd3883f8a33094c9b72a6e
2014-07-24 15:01:44 -04:00
Jonathan Leitschuh
2481e98bc8
Fixes a deallocation of the Relay resource when calling free. Changes fake "Enum Classes" into real Enumerations
...
Change-Id: I9d5a4760235adc9e02e41040c9973316e1f32da2
2014-07-24 13:59:21 -04:00
thomasclark
c81d510ebe
CANJaguar::ChangeControlMode marks the controlmode as unverified
...
This previous caused a bug where the Jaguar would sometimes
behave as if it were in the wrong mode, even when everything was
verfied.
Change-Id: Id5b96e0f7e64066eaaa0e5be4ba53fca76ba0703
2014-07-24 13:54:01 -04:00
Thomas Clark (WPI)
3fb4159101
Merge "Added missing call to m_ds.waitForData()"
2014-07-24 10:41:17 -07:00
Alex Henning
2e1bd171a5
Added missing call to m_ds.waitForData()
...
It was accidentally deleted in a previous commit[1] and none of our
tests caught it. As a result iterative robot loops run too fast (using
extra CPU).
[1] https://usfirst.collab.net/gerrit/gitweb?p=wpilibj.git;a=blobdiff;f=WPILibJ/src/main/java/edu/wpi/first/wpilibj/IterativeRobot.java;h=0e936de8ec86a76e0a63ddbfc65ec2b88bc71725;hp=d4c5d38a14e29c926389ba1ae84fcbd09ee51f19;hb=HEAD;hpb=726ac3a3d272310b367b25f3c7e15ba6d07b957d;tflink=projects.wpilib/scm.WPILibJ
Change-Id: I663f8619406f26b7fa6fc12bce4444657b829d9f
2014-07-24 12:02:50 -04:00
Alex Henning (WPI)
25e7a077c1
Merge "Implemented FRCSim artf2628, fixed bugs in non-sim Relay.java and sim PWM.cpp."
2014-07-24 08:59:51 -07:00
Colby Skeggs
dc48dc7f7b
Implemented FRCSim artf2628, fixed bugs in non-sim Relay.java and sim PWM.cpp.
...
Change-Id: Ic00fcd5026ce0570c79a65be178e45eeb94b3deb
2014-07-24 11:54:46 -04:00
Colby Skeggs
2dd45c3ea6
Fixed FRCSim artf2619, and misc reformatting.
...
Change-Id: I7133f46f88f7e2cb2451c2a6714daa8f3f368b40
2014-07-23 14:43:11 -07:00
Jonathan Leitschuh (WPI)
461e359484
Merge "Remove the Kinect code from C++"
2014-07-23 13:57:20 -07:00
thomasclark
78dac49cf6
Remove the Kinect code from C++
...
Change-Id: Ifef909a8948f1d0f881bf394b9a3ba925644306f
2014-07-23 16:55:45 -04:00
thomasclark
66ba9a728e
Fixed some bugs with CANJaguar verification in Java
...
Change-Id: I5f6510d53c806845f6bae5eb8fd9ebbc8fde054e
2014-07-23 16:33:57 -04:00
Jonathan Leitschuh (WPI)
c3d1e80a62
Merge "Fixed some bugs with CANJaguar verification in C++"
2014-07-23 12:48:17 -07:00
Jonathan Leitschuh (WPI)
01ca19f78f
Merge "Added a Jaguar brownout test in C++, cleaned up some C++ tests"
2014-07-23 12:46:27 -07:00
thomasclark
202bfb2959
Added a Jaguar brownout test in C++, cleaned up some C++ tests
...
Change-Id: I8fe26c0c3fab35bf783f6c5dfe0c16a991ec06cd
2014-07-23 15:24:39 -04:00
thomasclark
b0369342e9
Fixed some bugs with CANJaguar verification in C++
...
Change-Id: I3f17c090e26c6019523eb92eb47714464aa01baf
2014-07-23 15:22:26 -04:00
Alex Henning
26d101caf9
Restructure WPILibJ to share code.
...
wpilibJavaDevices now contains RoboRIO specific code and wpilibJava has
shared high level information. The restructuring was mostly just copy
and paste. The three big exceptions are Timer, RobotState and
HLUsageReporting. Those require some dependencies injection since that
appears to be the cleanest way to share the code.
Change-Id: Ie7011e32bc95953a87801a9905b3bfec7f8de285
2014-07-23 14:11:52 -04:00
Jonathan Leitschuh
e84e0ebab8
Updates the TestBench to use parameters to run specific test methods or test/suite classes.
...
Updates the test bench to only print "Waiting for enable" on one line with a counter.
Updates all SubSuites to extend the AbstractTestSuite class.
Also includes a small set of tests to prove the validity of the base AbstractTestSuite
Change-Id: I447ca2537a08c84ab1d69fa200cb8125b448a589
2014-07-23 10:43:42 -04:00
Jonathan Leitschuh (WPI)
0704a697ce
Merge "Updated the C++ TiltPanCameraTest"
2014-07-23 07:02:46 -07:00
Jonathan Leitschuh (WPI)
13f97bb6e3
Merge "Added an Accelerometer interface"
2014-07-23 06:57:42 -07:00
thomasclark
5eddb69aa0
Updated the C++ TiltPanCameraTest
...
The gyro sensitivity is fixed, the Accelerometer interface is
now used, and some tolerances are adjusted.
Change-Id: Iac1f3c4fbae3be923bd97692684ff72cd2f623f9
2014-07-23 09:36:27 -04:00
thomasclark
41c2b9402c
Added an Accelerometer interface
...
ADXL345_I2C, ADXL345_SPI, and BuiltInAccelerometer implement this interface.
The analog accelerometer class Accelerometer was renamed to
AnalogAccelerometer.
Change-Id: Iaae79d582a24c36c372f5fd4ea6df37be289b9c1
2014-07-22 18:04:00 -04:00
Jonathan Leitschuh (WPI)
99632e003b
Merge "Fixed the Command-Based Robot template [artf2550]"
2014-07-22 11:00:46 -07:00
thomasclark
fe12394c93
Fixed the Command-Based Robot template [artf2550]
...
Change-Id: I49361a70fd19d59fbeb9e22a8f65de875fa5a04a
2014-07-22 13:57:45 -04:00
Jonathan Leitschuh (WPI)
fbf196763f
Merge "Removed AnalogModule, DigitalModule, and Module from C++"
2014-07-22 10:53:21 -07:00
thomasclark
b5fb35c0c4
Removed AnalogModule, DigitalModule, and Module from Java
...
Change-Id: I42c58237f1e14d0ebae1c7266aecda00d51eeae1
2014-07-22 13:33:00 -04:00
Alex Henning (WPI)
48e8b2136e
Merge "Add support for downloading models hosted on FIRSTForge."
2014-07-22 09:54:23 -07:00
Alex Henning (WPI)
e962c770bb
Merge "Fixed installation of frc_gazebo_plugins and a few minor fixes."
2014-07-21 14:12:38 -07:00
Alex Henning
1b7a352cbb
Add support for downloading models hosted on FIRSTForge.
...
Change-Id: I191dc2620b5907316fbc38275d68c568656fa863
Completes: artf2620
2014-07-21 17:09:29 -04:00
thomasclark
1a77cea13a
Removed AnalogModule, DigitalModule, and Module from C++
...
The HAL calls from Analog/DigitalModule are now directly in the classes
that use them.
Change-Id: I1cf879ab2979be903d03ab8282dfe5a5e7ae9443
2014-07-21 16:32:36 -04:00
Alex Henning
afa39deec5
Fixed installation of frc_gazebo_plugins and a few minor fixes.
...
Change-Id: I1cb30acb69526455469ad890dfee8edd42958a5d
2014-07-21 14:55:43 -04:00
Jonathan Leitschuh
f27e16735f
Adds resource tracking to CANJaguar in C++
...
Change-Id: I0d562af5e9f4f50f79d61db15ff25eaf4dae00d5
2014-07-21 14:36:43 -04:00
Thomas Clark (WPI)
d8a5ced015
Merge "Fixes a bug with ErrorBase where the correct error code would not be set when using wpi_setWPIErrorWithContext()"
2014-07-21 08:23:59 -07:00
Jonathan Leitschuh
8fe606a4b1
Fixes a bug with ErrorBase where the correct error code would not be set when using wpi_setWPIErrorWithContext()
...
Change-Id: I6ed75428d31df219daf55969e9cd019bf9e0e117
2014-07-21 11:21:36 -04:00
thomasclark
6053a0cc24
Added BuiltInAccelerometer in Java and updated C++
...
Change-Id: I5a3360c51334e85da6a15fd640f9420bc3b64dca
2014-07-21 10:09:41 -04:00
Jonathan Leitschuh (WPI)
be106b3527
Merge "Added a C++ built-in accelerometer class"
2014-07-21 06:11:59 -07:00
Jonathan Leitschuh (WPI)
ebaf2ef058
Merge "Added HAL methods for using the built-in accelerometer"
2014-07-21 06:02:32 -07:00
thomasclark
9f1a9a07c9
Added a C++ built-in accelerometer class
...
Change-Id: I80cee788912277f06ac4bdda40261f160de0cbaa
2014-07-21 08:57:03 -04:00
thomasclark
ec2a455bc7
Added HAL methods for using the built-in accelerometer
...
Change-Id: I5372f5df9b29c546dab3913fcf983a7a9a5427dc
2014-07-21 08:49:51 -04:00
Jonathan Leitschuh
3d740a9a25
Adds Resource tracking to CANJaguar
...
Change-Id: Ic5da91d378d997f57c65b3bace5fcfd24485dddb
2014-07-18 15:00:59 -04:00
Thomas Clark (WPI)
1dd1e0be1e
Merge "Adds a Unit Test for the Resource object in Java. Fixes a bug in the Resource class caused by allocating a negative resource value."
2014-07-17 12:55:24 -07:00
Jonathan Leitschuh
437e3ff266
Adds a Unit Test for the Resource object in Java. Fixes a bug in the Resource class caused by allocating a negative resource value.
...
Change-Id: I3a3b368d429dc5cd00baf94ccd80a676a10cbb48
2014-07-17 15:51:01 -04:00
Jonathan Leitschuh (WPI)
f373c8708d
Merge "The camera fixture tests now include an SPI accelerometer test"
2014-07-17 12:48:32 -07:00
thomasclark
54a657a7d4
The camera fixture tests now include an SPI accelerometer test
...
Change-Id: I5dae746541d1d0e29f7d7c140a8fed8418502f45
2014-07-17 15:44:51 -04:00
Kevin O'Connor
60d8508a65
Fix artf2636 Don't consume ByteBuffer when checking class specific status
...
Change-Id: I94e46bd436cc8fd41c7550f1135287027e8be9c4
2014-07-17 15:22:53 -04:00
Kevin O'Connor
02a28c8f04
Add allocation checking for I2C MXP. Update DIO counts in Lib layer until resource checking moves down to HAL
...
Change-Id: I0abe80bcbe9cbbc81f0887a1cd1a3aa0862df5f1
2014-07-17 15:22:53 -04:00