Peter Johnson
02b6615042
RobotController: Make getBatteryVoltage() static. ( #869 )
2018-01-04 23:12:13 -06:00
Tyler Veness
1f4822f332
Replaced Talon motor controller in DifferentialDrive class docs with Spark ( #868 )
v2018.1.1
2018-01-03 20:27:34 -06:00
Peter Johnson
bb38ef5642
DifferentialDrive: Invert right motor in LiveWindow. ( #867 )
2018-01-02 21:15:15 -06:00
PJ Reiniger
ca36d1dce6
Adding callbacks for notifying when the distance per pulse changes ( #861 )
2018-01-02 16:53:39 -06:00
Sam Carlberg
ee33296e1f
SmartDashboard override .name entry in putData(String, Sendable) ( #866 )
...
Fixes #865
2018-01-02 16:39:16 -06:00
Tyler Veness
0ef9803363
Update copyright year to 2018 ( #864 )
...
Also fix a few files with incorrect line endings.
2018-01-02 11:20:21 -06:00
Tyler Veness
eedb8910c3
Removed extra newlines from beginning of Java classes ( #859 )
...
The content of this PR was generated by styleguide#111.
2018-01-02 11:17:46 -06:00
Sam Carlberg
8346caed9c
Move subsystem command metadata to metadata key format ( #863 )
2018-01-01 17:05:03 -05:00
PJ Reiniger
55b6764d50
Fix bugs in simulation libraries ( #853 )
...
Some thing got broken in the past couple of weeks with updates to the
HAL.
2017-12-31 14:37:14 -06:00
Thad House
2c4faee667
Fixes -Og compile and strip binaries ( #838 )
2017-12-29 22:18:35 -06:00
Jaci R
8d1dee16be
Add DriverStation NetworkTables HAL Extension ( #829 )
2017-12-29 21:55:31 -06:00
Jaci R
76b182600a
Add Low Fidelity NetworkTables simulation extension ( #823 )
2017-12-29 21:54:18 -06:00
sciencewhiz
c647a801ad
Add Encoder Index as a child ( #857 )
2017-12-29 21:48:39 -06:00
sciencewhiz
02131639bc
Add Digilent DMC 60 Speed Controller ( #855 )
2017-12-28 21:42:19 -06:00
Noah Gleason
566e283694
Make setDefaultCommand public ( #854 )
2017-12-28 12:48:15 -06:00
Peter Johnson
40eb6dfc9b
Fix SmartDashboard PutData to hook setters. ( #851 )
...
* Fix SmartDashboard PutData to hook setters.
Also update all PutData values in main periodic loop (same as LiveWindow).
* Improve SmartDashboard.putData() repeat call handling.
2017-12-26 18:18:02 -05:00
Dustin Spicuzza
a3e5378d14
SPI: Check for null ( #850 )
2017-12-25 22:03:22 -06:00
Thad House
691741cfcb
Fixes non public static methods in RobotController. ( #852 )
2017-12-25 20:26:05 -06:00
Thad House
166d9e01bf
Add PWMVictorSPX ( #842 )
2017-12-17 19:59:30 -08:00
Thad House
7eab4371f4
Adds TriState DIO functionality to the HAL ( #835 )
...
Adds a function to raw set the DIO direction. Also adds a C++ unsafe
function to enable fast setting of DIO direction.
v2018.1.1-beta-5
2017-12-14 00:17:29 -08:00
Peter Johnson
de134a5c60
Add deprecated shims for LiveWindowSendable and NamedSendable. ( #834 )
...
This will help prevent old code from breaking (not all cases, but should help).
2017-12-13 23:45:12 -08:00
Peter Johnson
7f074563d0
Add support for automatic SPI transfer engine. ( #836 )
...
The SPI Accumulator functions have been moved from HAL to wpilib and rewritten
to use the automatic transfer engine.
2017-12-13 23:41:37 -08:00
Thad House
d3dd586362
Revert "Fixes SPI bad chip select ( #818 )" ( #822 )
...
This is no longer required for image 2018v16.
This reverts commit b42285fddd .
2017-12-12 11:31:20 -08:00
Thad House
9c85105591
Update to image 2018v16 ( #833 )
2017-12-12 11:03:53 -08:00
Peter Johnson
86ac70a125
Fix wpilibcIntegrationTests RobotController warnings. ( #832 )
v2018.1.1-beta-4
2017-12-11 22:15:29 -08:00
Austin Shalit
3c3a448d47
Deprecate SampleRobot ( #472 )
...
Suggest TimedRobot as an alternative.
Remove -Werror from examples to avoid breaking build.
2017-12-11 22:06:01 -08:00
Thad House
8744511f1d
Fixes some methods in RobotController not being static. ( #831 )
2017-12-11 11:48:54 -08:00
Thad House
7729dd972f
Fixes JNI symbol check ( #830 )
...
setErrorData symbol was missing. However, its been deprecated at the
netcomm level for years, and wasn't exposed in wpilibj. And it would
have been crashing since forever, so safe to remove.
2017-12-11 11:48:39 -08:00
Thad House
8b7aa61091
Adds RobotController class ( #828 )
...
Unifies random functionality from other classes
Deprecates all old functions.
2017-12-10 21:52:49 -08:00
Peter Johnson
88a6b4ac38
PIDController::InitSendable(): Use double, not bool for double values. ( #827 )
2017-12-10 20:58:29 -08:00
Peter Johnson
217b1a2259
VisionRunner: Add stop() function to stop a runForever() loop. ( #826 )
...
This was previously possible in Java with Thread.interrupt(), but provide
the same function in both C++ and Java.
Fixes #444 .
2017-12-10 20:58:14 -08:00
Thad House
d2e7a90f41
Removes statics from hal sim ( #825 )
...
Based off of #824 , the equivelent in sim.
2017-12-10 19:38:53 -08:00
Thad House
8bd48d6c34
Switches HAL to manual instead of static initialization ( #824 )
...
Only athena.
Will fix a whole lot of init issues.
2017-12-10 18:02:07 -08:00
Thad House
1fa0adb091
Removes MSVC and GCC old version workarounds ( #821 )
2017-12-08 23:40:35 -08:00
Thad House
f615e68a43
Require GCC 5 for wpilib build ( #820 )
...
Will help in season with teams not upgrading their GCC. Will have a
better error message.
2017-12-08 22:48:01 -08:00
Thad House
aa4f0ef4f8
Start using the new FRC compiler define ( #797 )
...
Remove all definitions from the MockData headers when in simulation mode.
Add a constexpr IsReal and IsSimulation in RobotBase.
2017-12-08 22:47:21 -08:00
Thad House
b42285fddd
Fixes SPI bad chip select ( #818 )
...
Temporary workaround for 2018v13 image.
2017-12-08 21:42:30 -08:00
Thad House
8106fbdbea
Removes custom CONFIG_ATHENA compiler directive ( #796 )
...
In roborio GCC 5.5, __FRC_ROBORIO__ has been added directly to the
compiler. So we can instead use that to detect if we are build for the
roborio, and in a much more reliable way.
2017-12-08 21:40:11 -08:00
Tyler Veness
942ba51765
Reclassified NetworkTables headers as "other library" ( #775 )
2017-12-07 23:34:29 -08:00
PJ Reiniger
33a08d5b34
Add halsim unit tests ( #783 )
...
Also adds function that can register all the callbacks at once.
Since all of the callbacks issue a string identifier, it makes it
possible and easy to have one function callback, and differentiate the
path to take based on the string. Hooking up all the callbacks at once
makes it easier for the simulator developer to know when something was
added to wpilib rather than looking at the commits.
2017-12-07 22:42:20 -08:00
Thad House
4e3af0756d
Removes workarounds for issues in image 10 ( #816 )
2017-12-06 21:20:03 -08:00
Thad House
5078f6c92a
Update to image 2018v13 ( #815 )
2017-12-06 21:02:36 -08:00
Peter Johnson
899892c119
Change Utility to use Twine.
2017-12-05 00:17:56 -08:00
Peter Johnson
54326311ad
Use Twine in error checks.
2017-12-05 00:17:56 -08:00
Peter Johnson
fe53dd2f28
Use Twine for error message inputs.
2017-12-05 00:17:56 -08:00
Peter Johnson
ab137abab5
Use llvm::Twine across C++ Command structure.
2017-12-05 00:17:56 -08:00
Peter Johnson
001dedf3b2
SmartDashboard: Use magic static for static initialization. ( #812 )
...
It's possible for SmartDashboard functions to be called from static
initializers in user code, so use a magic static to force initialization
order.
2017-12-04 23:50:27 -08:00
Peter Johnson
f9bece2ffb
Update LiveWindow to provide continuous telemetry. ( #771 )
...
LiveWindow.updateValues() is now called from IterativeRobotBase on every
loop iteration. Telemetry for all WPILib classes is enabled by default;
it can be disabled for specific classes using LiveWindow.disableTelemetry(),
or all telemetry can be disabled using LiveWindow.disableAllTelemetry().
This necessitated changing the hook methodology into other classes to
be more property-based rather than each class providing multiple functions.
This had the benefit of reducing boilerplate and increasing consistency.
- Remove NamedSendable, add name to Sendable.
- Provide SendableBase abstract class.
- Deprecate LiveWindow addSensor/addActuator interfaces.
- Add LiveWindow support to drive classes.
- Add addChild() helper functions to Subsystem.
- Fix inheritance hierarchy. Now only sensors inherit from SensorBase.
Other devices inherit from some combination of SendableBase, ErrorBase, or
nothing.
2017-12-04 23:28:33 -08:00
Tyler Veness
3befc7015b
Make MotorEncoderTest use LinearDigitalFilter's reference overload ( #811 )
2017-12-04 22:37:06 -08:00
Tyler Veness
de63e1c8a1
Fixed race condition between PIDController enable/disable and PIDWrite() call
...
To make this work in PIDController.java, the use of synchronized had to be
replaced with ReentrantLock and try-catch blocks. The locking in
PIDController.java was made equivalent to PIDController.cpp and some existing
race conditions in PIDController.java were fixed in the process.
Fixes #30 .
2017-12-04 20:42:33 -08:00