Tyler Veness
822ea6abc8
Made SpeedController class organization consistent between languages ( #568 )
2017-07-09 19:43:56 -07:00
Tyler Veness
89d3b08e77
Added TimedRobot ( #520 )
2017-07-08 07:50:56 -07:00
Thad House
2da26c0579
Make HAL_Initialize timeout configurable, makes result a bool, and makes Java an exception rather than assert. ( #557 )
2017-07-01 00:43:06 -07:00
Tyler Veness
d34c844900
Fixed function ordering in robot base classes ( #553 )
2017-06-30 22:12:28 -07:00
Tyler Veness
68b63632c4
Removed functions that have been deprecated for at least one year ( #551 )
2017-06-30 22:05:33 -07:00
Tyler Veness
9d93820717
Replaced STL streams with LLVM's raw_ostream ( #344 )
...
std::cout and std::printf were replaced with llvm::outs() and std::cerr was replaced with llvm::errs().
2017-06-30 19:33:43 -07:00
Tyler Veness
0cd03c66e3
Remove deprecated Task class ( #550 )
2017-06-30 16:12:19 -07:00
Tyler Veness
98a587a347
Removed unused includes and added missing stdint.h includes ( #549 )
2017-06-25 09:05:49 -07:00
Tyler Veness
b433d98c02
Replace std::stringstream with llvm::raw_svector_ostream ( #345 )
...
A few locations were changed to use std::ostringstream.
2017-05-15 23:10:40 -07:00
Thad House
efec0c5cc3
Moves the HAL priority_ custom types to the hal namespace ( #532 )
...
There is a shim for backwards compatibility, just like the frc namespace.
As with the frc namespace, the library compiles without the shim.
2017-05-11 21:25:22 -07:00
Thad House
b2f3479692
Switches SPI and I2C to use enums in the HAL for ports ( #531 )
...
Closes #397
2017-05-09 12:12:46 -07:00
Thad House
e1fc60b8dd
SolenoidBase functions are now static ( #530 )
...
Instance methods were kept around for backwards compat in Java. In C++,
the instance methods were changed to match Java. Also some cleanup to
the JNI layer to match updated variable types we missed.
Closes #416
2017-05-08 21:55:11 -07:00
Thad House
fc81298fac
Switches DS to use Occur callback rather than internal netcomm semaphore ( #510 )
...
Allows us to control multithreaded access and spurious wakeups easier.
closes #509
Switches DS to use new waitForData functionality
Adds a few new functions
2017-05-08 20:21:47 -07:00
Austin Shalit
4dae747343
Refactor RobotDrive squaring ( #390 )
2017-05-07 09:40:48 -07:00
Peter Johnson
e375b4a9ff
CameraServer: auto-increment startAutomaticCapture(). ( #468 )
...
Also add GetServer() functions so the automatically created VideoSink can
be retrieved by user code if desired.
2017-01-20 01:07:37 -07:00
Peter Johnson
bc7ab17692
CameraServer updates ( #446 )
...
* CameraServer: Add properties and video mode NT interchange.
* Automatically serve Axis cameras so they're accessible via USB.
2017-01-05 02:51:55 -08:00
Austin Shalit
ed1a94531a
Update license headers to 2017 ( #434 )
2017-01-01 00:05:57 -08:00
Peter Johnson
4800c201e4
Add Axis camera creation functions and Http camera NT publishing. ( #420 )
2016-12-24 21:05:08 -06:00
Austin Shalit
8f67f2c24c
Remove unused code and add pmd check ( #395 )
2016-12-23 13:20:13 -06:00
Thad House
94b8ac42ca
Adds CPP version of vision pipeline ( #399 )
2016-12-21 23:58:42 -06:00
Thad House
8e4afc95c7
Switches C++ strings to StringRef ( #336 )
2016-12-21 00:08:24 -06:00
Tyler Veness
8cec948699
Fix typos ( #409 )
2016-12-19 22:06:39 -06:00
Thad House
db2091dd94
Adds safe serial port write methods ( #396 )
...
The old method had a fairly large risk of undefined behavior, and the way the docs
were written could cause users to get confused.
Deprecate the old method and add StringRef method as preferred approach.
2016-12-10 22:40:44 -08:00
Peter Johnson
06108b9479
Update CameraServer support. ( #386 )
...
* Follow MixedCase rename.
* Add GetVideo function to get cameras by name.
2016-12-04 00:26:08 -08:00
Thad House
351ff5eb48
Adds new Threads API for priority setting while using std::thread ( #379 )
...
Also adds Java API for doing the same to Java threads (standard Java Thread.setPriority only works
when Java is run as root, even if the process has the right privileges).
2016-12-01 21:06:19 -08:00
Thad House
a6fb1efcbe
Switches internal joystick errors to take StringRef ( #378 )
...
Previously this would have allocated the std::string every time, even if
the message wasn't printed. Now takes a StringRef, and only converts to
std::string when the message actually gets printed.
2016-11-26 21:22:39 -08:00
Thad House
f3d66e92ec
Searches for USB serial devices to get the correct VISA object ( #363 )
...
Fix was made in LabVIEW, and this matches what was done there.
2016-11-22 21:51:47 -08:00
Tyler Veness
69422dc063
Replaced floats with doubles ( #355 )
...
This makes our APIs more consistent. With optimizations enabled, doubles are just as efficient as floats on ARMv7, so we should take advantage of the extra precision.
2016-11-20 07:25:03 -08:00
Tyler Veness
1c8fb298b4
Ran formatter ( #354 )
2016-11-19 00:39:32 -08:00
Tyler Veness
140c365e4b
Added XboxController class ( #140 )
...
Joystick and Gamepad functionality was separated into cleaner interfaces.
2016-11-18 23:05:37 -08:00
Peter Johnson
8c93ceb728
Add cscore-based CameraServer. ( #352 )
...
Not fully functional yet, but implements basic functionality required for LabView dashboard interoperability.
2016-11-18 22:30:22 -08:00
Thad House
ac50d7cf8a
Removes NiVision from allwpilib ( #305 )
2016-11-18 20:04:21 -08:00
Thad House
1efb2e4d3d
Deprecates Task and Semaphore, and changes other deprecations to use wpiutil version ( #330 )
2016-11-05 00:23:52 -07:00
Thad House
5e54969f6b
Adds Task back into WPILibC ( #320 )
...
Note that deprecation has not been added yet, since we need to add the
deprecation API's for MSVC and GCC < 4.9.
2016-11-02 22:17:40 -07:00
Thad House
78f0b1562c
Removes Task.h from wpilib.h header ( #317 )
2016-11-01 23:08:57 -07:00
Peter Johnson
59267da72b
Namespace all wpilibc functions/classes into "frc" namespace. ( #311 )
...
Base.h provides a backwards compatibility shim (enabled unless
NAMESPACED_WPILIB is defined) that does a "using namespace frc".
However, as some header files do not include Base.h, this may
be a breaking change in some corner cases (with an easy fix).
Fixes #218 .
2016-11-01 22:33:12 -07:00
Thad House
ecb2add791
Removes additional references to CANTalon from the library. ( #312 )
2016-11-01 20:13:26 -07:00
Thad House
9bbdaf300b
Removes the task class from wpilib ( #314 )
...
Was required back on the cRIO, but there are much better alternatives
nowadays.
2016-11-01 20:12:08 -07:00
Thad House
bc492bb40e
Removes the REAL definition from wpilib.h ( #315 )
...
Interferes with OpenCV, and is heavy namespace polution anyway.
2016-11-01 19:23:59 -07:00
Thad House
247cef5ec2
Removes CANJaguar from wpilib ( #300 )
...
Now located at https://github.com/wpilibsuite/CANJaguar .
2016-10-27 10:54:52 -07:00
Thad House
1071686d81
Replaces C++ IsNewControlData semaphore with atomic bool, and Java code with AtomicBool ( #187 )
2016-10-24 20:32:43 -07:00
Kevin-OConnor
567ea1d58d
Remove CAN TalonSRX from WPILib (moving to external library) ( #268 )
2016-10-13 18:50:20 -07:00
Austin Shalit
27bf94fd06
Remove kDefaultPeriod from IterativeRobot ( #232 )
...
* Remove kDefaultPeriod from IterativeRobot
* Remove period
* Remove NextPeriodReady
2016-10-09 13:58:30 -07:00
Thad House
4896a77c86
Fixes guarantees for waitForData ( #252 )
...
As discussed in #234 , we now check for the timeout case and handle a
timeout correctly.
2016-10-09 11:46:01 -07:00
Tyler Veness
5dfae8d6bd
Fixed include order ( #245 )
...
See wpilibsuite/styleguide (#11 ).
2016-09-25 16:50:13 -07:00
Austin Shalit
1416fb8f67
Update Periodic JavaDoc ( #231 )
2016-09-13 21:21:25 -07:00
Thad House
f271185cbc
Adds a RobotPeriodic method to IterativeRobot ( #226 )
...
Called globally during each IterativeRobot loop
2016-09-13 20:25:18 -07:00
Tyler Veness
0cd05d1a42
Cleaned up integer type usage in wpilibc ( #92 )
...
Replaced all unsigned types to signed and int32_t with int in wpilibc
2016-09-06 00:01:45 -07:00
Tyler Veness
05626cfafe
Fixed cpplint.py warnings ( #215 )
...
* Fixed cpplint.py [build/include_order] and [build/include_what_you_use] warnings
* Fixed cpplint.py [readability/casting] warnings
* Updated .styleguide format
* Fixed cpplint.py [build/header_guard] warnings
2016-09-05 13:55:31 -07:00
Thad House
59ec54887d
Switches notifier to use a typedef for the callback, and prepends HAL_ to InterruptHandlerFunction ( #216 )
2016-09-05 07:31:51 -07:00