Peter Johnson
81c2c8a7de
Add simulation generic device/value support
...
This allows high-level library classes to implement enhanced simulation
support even if no low-level corresponding simulation library exists, and
avoids the need for bit-banging complex interfaces like SPI or CAN.
2019-10-05 22:39:00 -07:00
Peter Johnson
e8d6f8a2c1
Move mockdata/HAL_Value.h to hal/Value.h
...
Also prefix the MakeBoolean et al functions with HAL_ to avoid namespace
pollution.
2019-10-05 22:39:00 -07:00
Peter Johnson
1b266717a8
Add simulation module support to cmake build ( #1906 )
2019-10-04 19:08:57 -07:00
Thad House
fb8f3bd06b
Add testbench yaml file ( #1915 )
2019-10-04 15:09:35 -07:00
Thad House
846d8def00
Update to 2020 v2 image ( #1913 )
...
* Update to 2020 v2 image
2019-10-02 13:14:30 -07:00
Thad House
d6ac6e512b
Fix PortForwarder package declaration ( #1912 )
2019-09-30 15:13:09 -07:00
Banks T
2271570860
Fix PS3Eye exposure setting ( #1911 )
2019-09-30 15:09:39 -07:00
Peter Johnson
885744d7e1
Add myRobot C++ version to cmake build ( #1907 )
2019-09-29 20:36:28 -07:00
sciencewhiz
366091fa87
Document that ConditionalCommand requires all subsystems ( #1909 )
...
Fixes #1683
Fixes typo
2019-09-29 20:35:41 -07:00
sciencewhiz
c58b072c89
Fix Drive usage reporting order ( #1908 )
...
Fixes #1893
2019-09-29 20:35:04 -07:00
sciencewhiz
762c88adb8
Update compiler versions in readme ( #1905 )
2019-09-29 16:56:11 -07:00
Tyler Veness
af8ce568d1
Add Ramsete unicycle controller ( #1790 )
2019-09-29 16:48:12 -07:00
Tyler Veness
b2c2934d05
Fix javadoc warnings about invalid usage of ">" ( #1904 )
...
The trajectory gen docs use "->". ">" has been replaced with ">".
2019-09-29 16:38:48 -07:00
Tyler Veness
cce26ec78e
Replace CRLF line endings with LF ( #1902 )
2019-09-28 19:55:50 -07:00
Thad House
cb54602d49
Add support for writing RTR CAN Frames to the CAN API ( #1900 )
2019-09-28 16:49:34 -07:00
Thad House
9f740e5905
Use OS for serial port instead of NI VISA ( #1875 )
2019-09-28 16:49:11 -07:00
Peter Johnson
b23baf611a
Add ability to run robot main loop in a separate thread ( #1895 )
...
Default behavior is still to run the robot main loop in the main thread.
The ability to run the robot main loop in a separate thread and add a hook
for running a different function in the main thread is needed for simulation
GUI support on some platforms.
2019-09-28 15:43:24 -07:00
Prateek Machiraju
457f94ba26
Add trajectory generation using hermite splines ( #1843 )
2019-09-28 15:40:56 -07:00
Thad House
fd612052f3
Update native utils to use new frchome directory ( #1884 )
2019-09-28 15:40:02 -07:00
Thad House
8858ec55c7
Remove periodic can read call ( #1868 )
...
It is not necessary anymore, and is a complicated and confusing API to keep around.
2019-09-28 15:38:58 -07:00
CodingWithFusion
41efb8015d
Update CANAPITypes.h ( #1860 )
...
Add Playing With Fusion to CAN manufacturer list.
2019-09-28 15:33:18 -07:00
Thad House
c93be1b2d5
Remove LabVIEW HAL support ( #1901 )
2019-09-28 15:31:43 -07:00
Thad House
680f8919ed
Remove eigen, units and libuv from doxygen generation ( #1898 )
2019-09-28 08:28:31 -07:00
Thad House
c5812524f8
Bump GradleJNI plugin version ( #1899 )
...
Fixes an issue where the symbol check task doesn't always run.
2019-09-28 08:28:02 -07:00
Peter Johnson
971303da8c
Add PortForwarder class ( #1890 )
...
This class provides an easy way to forward local ports to another host/port.
This is primarily useful to provide a way to access Ethernet-connected devices
from a computer tethered to the RoboRIO USB port.
The most natural spot to put the shared implementation of this class was into
wpiutil, so a wpiutilJNI library has been added.
2019-09-26 22:53:21 -07:00
hjelstromboli
50db77bf25
Fix wpiutil cmake eigen install source directory ( #1891 )
2019-09-16 12:54:13 -05:00
Oblarg
85d42c1993
C++ PIDCommand: Add GetMeasurement() and UseOutput() ( #1892 )
...
These are in the Java version but were missed in C++.
2019-09-16 12:53:03 -05:00
Prateek Machiraju
2dfbb855d7
wpilibj: Fix SwerveDriveKinematics ctor parameter name ( #1889 )
2019-09-15 14:53:21 -05:00
Peter Johnson
471f375a38
Simplify Sendable interface ( #1864 )
...
This removes the name and subsystem from individual objects, and instead
puts this data into a new singleton class, SendableRegistry. Much of
LiveWindow has been refactored into SendableRegistry.
In C++, a new CRTP helper class, SendableHelper, has been added to provide
move and destruction functionality.
Shims for GetName, SetName, GetSubsystem, and SetSubsystem have been added
to Command and Subsystem (both old and new), and also to SendableHelper to
prevent code breakage.
This deprecates SendableBase in preparation for future removal.
2019-09-14 15:22:54 -05:00
Tyler Veness
1d8c4d016f
Replace ::value and ::type with _v and _t suffixes ( #1885 )
2019-09-13 22:14:37 -05:00
Rishab Rao
a5650b9439
Add Units Utility class for Java ( #1829 )
...
Units conversion class to convert between commonly used units.
Co-Authored-By: Austin Shalit <austinshalit@gmail.com >
2019-09-12 13:38:25 -05:00
Tyler Veness
904479ad43
Deprecate GearTooth class for removal ( #1878 )
...
It only works with a specific sensor that isn't available anymore, the
class is a trivial wrapper around a Counter, and no one uses this class
according to FMS usage reporting.
2019-09-08 13:21:36 -05:00
Prateek Machiraju
86b666bba9
Add equality comparator to geometry classes ( #1882 )
2019-09-08 13:20:26 -05:00
Tyler Veness
62f07c182c
Make one-arg Rotation2d constructor implicit ( #1883 )
...
Since a value in radians is always a rotation, it makes sense to provide
an implicit constructor for this for convenience with Pose2d's
constructor.
2019-09-08 13:15:07 -05:00
Prateek Machiraju
f405582f86
Add kinematics suite ( #1787 )
...
Co-authored-by: Tyler Veness <calcmogul@gmail.com >
Co-authored-by: Matt <matthew.morley.ca@gmail.com >
2019-09-07 23:11:49 -05:00
Tyler Veness
561cbbd144
Deprecate Filter class for removal ( #1876 )
2019-09-07 23:02:44 -05:00
Tyler Veness
84e2973aaa
Remove unused include from Filesystem.h ( #1877 )
2019-09-07 23:01:57 -05:00
Thad House
f49859ebfd
Remove NI VISA headers, as they are now included in NI Libraries ( #1879 )
2019-09-07 23:01:27 -05:00
Thad House
bc59db5e6f
Rename DEBUG macro to DEBUG0 ( #1871 )
...
This avoids conflicts with the platform DEBUG macro on some platforms.
2019-09-06 20:45:52 -05:00
Thad House
dd928b4cbf
Remove JNI logging ( #1872 )
2019-09-06 20:42:40 -05:00
Peter Johnson
3e0f7d0995
Use units for new NotifierCommand ( #1869 )
2019-09-04 22:54:49 -05:00
Thad House
5ffe15d5ff
Remove ability to build all combined artifacts ( #1867 )
2019-09-04 13:06:46 -07:00
Thad House
516cbef2c4
Remove RoboRIO ifdef from simulation headers ( #1859 )
2019-09-03 19:55:17 -07:00
Tyler Veness
9b6ffc201c
Replace SetOutputRange() with SetIntegratorRange()
...
If users are attempting to use the output range to limit the controller
action, they should use ProfiledPIDController instead. If they actually
intended to clamp the output, they should use std::clamp().
2019-09-03 19:46:59 -07:00
Tyler Veness
ff8b8f0a8a
Remove percent tolerance from PID controller
...
It breaks the unit system badly; the tolerance member variable has
different units depending on percent vs absolute. Absolute tolerance is
a lot more natural than percent tolerance anyway.
2019-09-03 19:46:59 -07:00
Peter Johnson
0ca8d667d2
Clean up AutoCloseable and other Java warnings ( #1866 )
2019-09-03 19:44:24 -07:00
Tyler Veness
7112add67f
Watchdog: use units::second_t instead of double ( #1863 )
...
Fixes #1827 .
2019-09-03 15:58:31 -07:00
Peter Johnson
761bc3ef85
Change C++ WaitCommand to use units ( #1865 )
...
Also remove unique_ptr usage.
2019-09-02 23:39:51 -07:00
Tyler Veness
1fb3011235
Add MathUtils.clamp() for Java ( #1861 )
...
Also use std::clamp() and MathUtils.clamp() in as many places as
possible in place of custom clamp functions or if statements.
2019-08-28 23:24:30 -07:00
Peter Johnson
eb3e0c9c95
Fix cmake Eigen include directory ( #1862 )
...
This currently only breaks when cmake is configured with WITH_TESTS but
ultimately this would have affected wpilibc builds too.
2019-08-28 23:24:08 -07:00