Peter Johnson
310151132d
AnalogPotentiometer: Make constructors explicit.
...
The second and third arguments have default values, so it needs to
be explicit.
Change-Id: I893a45d750291f96983bef6b753d91f10c44d2ab
2014-07-28 00:01:42 -07:00
Peter Johnson
7f4e1e39ae
ADXL345_I2C: Make constructor explicit.
...
The second argument has a default value, so it needs to be explicit.
Change-Id: I5c38f8f55f9c21576835c005acd8d80fe6864140
2014-07-27 23:59:59 -07:00
Peter Johnson
eebdc3d20c
BuiltInAccelerometer: Add virtual destructor.
...
Change-Id: I38e5ca92ba6c5b395366cfd8ea35acd2a08dbdac
2014-07-27 23:52:00 -07:00
Thomas Clark
980ea96b05
Fixed Preferences in C++
...
The file name was never updated from the old path, a deadlock occured
sometimes. A "resource not found" message was also set when fopen()
returns an error, which should be an errno message because it's a C
library error.
Change-Id: Ic913a08f6f5d73219cb6625198f5a4519c039956
2014-07-25 17:03:28 -04:00
Thomas Clark
1038f98e83
Fixed wpi_setErrnoError to print the error name
...
Previously, wpi_setErrnoError and wpi_setErrnoErrorWithContext
always printed "Unknown errno" whenever a C library error
occured.
Change-Id: Ib235138eea0e83b0d7462dfd6e834e3499e3b0c5
2014-07-25 16:52:00 -04:00
Thomas Clark
326aa2e85c
Fixed a typo with the tGlobal commit
...
Change-Id: Ic801e9f73235cd24e9f57484c8af892c9c125075
2014-07-25 13:08:52 -04:00
Thomas Clark
6071fc7fb3
Fixed CANJaguar percent scaling issue [artf2637]
...
Percent mode used to be scaled incorrectly in Java because the
max output voltage was initialized to a wrong value.
Change-Id: If88bb2f1d198e13b1724afc62a522fbf91a14b5b
2014-07-25 13:01:24 -04:00
thomasclark
f958b65ba6
CANJaguar can be disabled [artf2647]
...
The CANJaguar class now stores a controlEnabled flag. When disabled, it
won't verify the control mode, which involves sending enable messages.
Change-Id: I8baa48eec31de6b4d3fee2b5a074320542a1bbef
2014-07-25 12:59:47 -04:00
Brad Miller (WPI)
f4f7588cfb
Merge "A few small changes to the C++ ITs"
2014-07-25 08:54:42 -07:00
Brad Miller (WPI)
80ecff6bdb
Merge "AnalogInput::PIDGet returns an average voltage[artf2391]"
2014-07-25 08:52:16 -07:00
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