Caleb Smith
a338ee8be0
Add PIDController Wrapping ( #601 )
2017-11-25 21:15:33 -08:00
Tyler Veness
5c659fdcdf
Deprecated PIDController::SetTolerance() ( #764 )
...
PIDController::SetPercentTolerance() behaves identically to it, so removing
SetTolerance() leaves one obvious way to do absolute or percent tolerance.
2017-11-23 01:21:36 -08:00
Thad House
d36d72bd4f
Fixes MotorSafetyHelper locking and race conditions ( #762 )
...
Closes #760
2017-11-23 00:36:57 -08:00
sciencewhiz
614093c0c4
Fix documentation for getMatchTime in Timer class to match DriverStation ( #761 )
2017-11-23 00:19:05 -08:00
Caleb Smith
0431cf97ff
Cleanup PIDController ( #597 )
2017-11-22 18:56:35 -08:00
Tyler Veness
85157a56c3
CircularBuffer now uses an idiomatic interface in C++ and Java ( #421 )
2017-11-22 17:04:57 -08:00
Tyler Veness
05e581f409
Fixed crash in wpilibj SampleRobot ( #753 )
...
robotInit() and HAL.observeUserProgramStarting() should be called in
startCompetition() rather than the constructor.
Fixes #752 .
2017-11-19 22:47:39 -08:00
Tyler Veness
259461aee9
Added PIDController::GetAvgError() back in ( #749 )
...
It got removed during the LinearDigitalFilter change (#38 ) instead of deprecated
by mistake.
2017-11-19 18:23:48 -08:00
Peter Johnson
d214b36786
Change HAL notifier to polling. ( #627 )
...
This moves the thread code to the WPILib layer, fixing various potential
races and significantly simplifying the HAL implementation.
2017-11-19 17:58:40 -08:00
Tyler Veness
4a07f0380f
PIDController class now uses LinearDigitalFilter for filtering velocity instead of internal queue ( #38 )
2017-11-19 15:58:30 -08:00
Peter Johnson
a20474bfc7
Update sensors to not use direct byte buffers.
2017-11-17 09:36:57 -08:00
Peter Johnson
479d0beb5a
SerialPort: Use byte[] instead of ByteBuffer in JNI.
2017-11-17 09:36:57 -08:00
Peter Johnson
b93aa176d6
AnalogInput: Remove byte buffer usage.
2017-11-17 09:36:57 -08:00
Peter Johnson
9021b37fd2
I2C: Provide byte[] JNI interfaces.
...
This avoids a direct byte buffer allocation on every read/write/transaction
on the byte[] variants.
Changes HAL I2C interfaces to use const for dataToSend.
2017-11-17 09:36:57 -08:00
Peter Johnson
6307d41002
SPI: Provide byte[] JNI interfaces.
...
This avoids a direct byte buffer allocation on every read/write/transaction
for the byte[] variants.
Also change spiGetAccumulatorOutput() to directly set the AccumulatorResult
object, avoiding a ByteBuffer allocation.
Changes HAL SPI interfaces to use const for dataToSend.
Fixes #733 .
2017-11-17 09:36:57 -08:00
Thad House
dd7563376b
Force load OpenCV and cscore libraries on program initialization ( #716 )
...
Fixes bugs where Mat's are initialized before anything cscore was
called.
2017-11-14 22:04:53 -08:00
Tyler Veness
14fcf3f2f0
Simplified PIDController integration logic ( #645 )
...
A clamp() helper function was written based on C++17's std::clamp().
2017-11-13 22:28:55 -08:00
Peter Johnson
4d559f3856
Use wpi::mutex instead of std::mutex. ( #730 )
...
This uses a priority-aware mutex on Linux platforms.
Fixes #729 .
2017-11-13 09:51:48 -08:00
Thad House
7bbd13d914
Adds match specific calls to Java and C++ ( #720 )
...
Uses caching, matching the joystick calls.
2017-11-09 19:59:29 -08:00
Tyler Veness
7efab4c43a
Replaced ternary operators with if statements ( #346 )
...
Instances of the ternary operator were replaced with if statements to make the code base more consistent.
2017-11-08 23:44:03 -08:00
Peter Johnson
f3cd883c5c
Add Nidec Brushless motor. ( #705 )
2017-11-08 23:40:01 -08:00
Tyler Veness
1276489961
Removed uses of deprecated functions ( #709 )
2017-11-08 21:29:29 -08:00
Tyler Veness
8b2e656bde
Fixed Java velocity PID not calculating result when P = 0 ( #717 )
2017-11-08 21:28:09 -08:00
Thad House
f4dce9e608
Fixes receive size in Java I2C ( #715 )
...
Allows underrun, which matches c++ behavior.
Fixes #711
2017-11-07 18:43:23 -08:00
Thad House
bee9f1cb17
Adds header task to print out all headers ( #704 )
...
Will be used to create a generator for IDE's to get include paths.
2017-11-03 22:50:06 -07:00
Sam Carlberg
237b2df82f
Add .type metadata to preferences table ( #701 )
...
Allows shuffleboard to automatically discover the type, instead of inflexibly hardcoding it
2017-10-30 21:50:49 -07:00
Peter Johnson
a70687aaec
Improve error reporting for the new TCP netconsole. ( #700 )
...
Fixes #695 .
2017-10-30 21:50:14 -07:00
Tyler Veness
595b1df380
Fixed minimum number of joystick axes ( #696 )
2017-10-29 17:21:50 -07:00
Thad House
efc7770e9b
Fixes NPE in DriverStation initialization ( #694 )
...
Introduced by #626 .
2017-10-27 23:16:42 -07:00
Tyler Veness
21585f70a8
Added functions for detecting button press and release events ( #626 )
...
I also shuffled around the HID interfaces to be more intuitive, deprecated some
Joystick and XboxController member functions, and deprecated the JoystickBase
and GamepadBase classes.
Supersedes #89 .
2017-10-27 21:45:56 -07:00
Thad House
90f99dc571
Adds PWM to LoopTiming and CycleStart HAL calls ( #693 )
2017-10-27 19:44:40 -07:00
sciencewhiz
12e96c6f13
Add usage reporting to CameraServer ( #682 )
2017-10-27 00:45:54 -07:00
Austin Shalit
b65447b6f5
Fix spelling typos ( #595 )
2017-10-27 00:44:51 -07:00
Thad House
a1ea448406
Adds JNI call to get CANStatus ( #677 )
...
Call already existed in the HAL.
2017-10-21 15:32:05 -07:00
Tyler Veness
9dc1de1d09
Specified angle units for Vector2d rotate() function. ( #679 )
...
Fixes #676 .
2017-10-21 15:29:39 -07:00
Austin Shalit
2fc60680f4
Remove RedundantModifiers ( #578 )
2017-10-17 21:47:55 -07:00
Thad House
ee20747255
Adds WPILib JNI shared debug file publish. ( #671 )
2017-10-16 19:59:05 -07:00
Austin Shalit
877a9eae1f
Add SpeedControllerGroup ( #362 )
2017-10-16 19:54:36 -07:00
Thad House
24752a9751
Removes OpenCV dependency from wpilibJNI ( #667 )
...
Not exactly sure why it was there in the first place. Closes #664
2017-10-12 18:25:17 -07:00
Sam Carlberg
f0cc623241
Change metadata format to dotfile, make certain entries metadata ( #666 )
...
Sendable's "Name" is now ".name"
Sendable's "Subsystem" is now ".subsystem"
Command's "name" is now ".name"
Command's "isParented" is now ".isParented"
2017-10-11 20:27:49 -07:00
Jacob Caporuscio
ba3a85d0cc
Changes TalonSRX to PWMTalonSRX in wpilibj and wpilibc. ( #656 )
...
Also brings the java kResourceType list up-to-date with the cpp list.
2017-10-11 12:01:50 -07:00
Thad House
94ea5bfb06
Move published wpilibj JNI shared artifact into shared/ subfolder ( #658 )
...
Makes eclipse easier.
2017-10-07 15:31:36 -07:00
Peter Johnson
7fab0e0ef2
Depend on wpiutil 3.+, ntcore 4.+, cscore 1.+ rather than just +. ( #651 )
...
Also update to wpilib-version-plugin 2.0.
2017-10-01 10:57:03 -07:00
Tyler Veness
19addb04cf
Split RobotDrive class into a class for each drive type ( #552 )
...
DiffDrive.CurvatureDrive (aka CheesyDrive) and KilloughDrive were also added.
This reorganization paves the way for SwerveDrive.
2017-09-28 23:30:00 -07:00
pjreiniger
abb66d3e4b
Replace FRC_NetworkCommunication CAN in wpilibj with HAL CAN ( #650 )
2017-09-28 22:40:04 -07:00
pjreiniger
db4981f166
Java now asks the HAL if it is a simulation or not ( #647 )
2017-09-23 07:56:53 -07:00
sciencewhiz
423d8f6860
Add missing usage reporting. ( #639 )
...
Compressor C++/Java
Servo C++
2017-09-19 21:17:27 -07:00
Thad House
c572e6a307
Adds the rest of the data needed for a publish on jenkins ( #628 )
2017-09-07 21:07:01 -07:00
Tyler Veness
e444b6015c
Updated remaining .styleguide files to new config file format ( #635 )
2017-09-07 21:02:52 -07:00
Peter Johnson
34c18ef000
Remove getTable from wpilibj Sendable interface.
...
This allows nearly all m_table member variables to be removed.
2017-09-06 22:29:04 -07:00