Thad House
8280b7e3af
Add DutyCycleEncoder and AnalogEncoder ( #2040 )
2019-11-14 22:51:33 -08:00
Thad House
5510960068
Use kNumSystems for DutyCycle count in Ports ( #2083 )
2019-11-14 12:15:47 -08:00
Thad House
df10652183
Remove release configs of deploy in MyRobot ( #2082 )
...
Bug in lower level library causes having both be broken. So for now just removed release.
Issue created in low level library to fix
2019-11-14 12:15:36 -08:00
Thad House
bf5388393e
Add deploy options to myRobot ( #2079 )
...
Will only deploy to USB by default, and will not deploy the JRE, but will deploy a Java app.
2019-11-13 22:45:19 -08:00
Thad House
b7bc1ea745
Update to 2020v6 image ( #2078 )
2019-11-13 21:35:52 -08:00
Thad House
708009cd20
Update to gradle 6.0 ( #2074 )
2019-11-12 17:14:04 -08:00
Thad House
3cce61b89f
Add SmartDashboard::GetEntry function in C++ ( #2064 )
...
Existed in Java already.
2019-11-12 17:11:32 -08:00
CTT
565e1f3e79
Fix spelling in MecanumDriveOdometry docs ( #2072 )
2019-11-11 23:25:09 -08:00
Peter Johnson
1853f7b6b7
Add timing window to simulation GUI
...
This shows the FPGA time and notifier timing, and has buttons to
start/pause/step the simulation.
The GUI also pauses DS new data notifications when paused. This could be
done globally instead by blocking NotifyNewData at the HAL level?
2019-11-11 22:03:29 -08:00
Peter Johnson
c5a0497124
Add simulation pause/resume/step support
...
Calling HALSIM_PauseTiming pauses the FPGA clock and notifiers.
Calling HALSIM_ResumeTiming resumes the FPGA clock and notifiers.
Calling HALSIM_StepTiming steps the FPGA clock and runs applicable notifiers.
This will effectively pause TimedRobot and any other notifier-based events,
but of course will not pause user threads that do not use the notifier (e.g.
image processing).
2019-11-11 22:03:29 -08:00
Peter Johnson
f5446c7409
Add Notifier HALSIM access
2019-11-11 22:03:29 -08:00
Peter Johnson
3e049e02f0
Add name to HAL Notifier
2019-11-11 22:03:29 -08:00
David Vo
2da64d15f6
Make usage reporting enums type match ( #2069 )
...
This changes the C++ HALUsageReporting enums to have an
explicit type which matches the HAL_Report parameter
types. In practice this shouldn't change much except
for tooling that might be parsing this header.
2019-11-11 21:38:49 -08:00
David Vo
f04d95e50f
Make FRCUsageReporting.h C-compatible ( #2070 )
...
Now that HAL_Report has been moved into FRCUsageReporting.h,
this should also be C-compatible.
This also removes the C++ ifdef guard in HAL.h.
2019-11-11 21:38:24 -08:00
sciencewhiz
d748c67a54
Generate docs for command libraries and fix doclint enable ( #2071 )
2019-11-11 21:38:04 -08:00
Prateek Machiraju
55a7f2b4ad
Add template for old command-based style ( #2031 )
2019-11-10 23:20:33 -08:00
CTT
486fa9c696
Add XboxController examples for arcade and tank drive ( #2058 )
2019-11-10 22:53:17 -08:00
Oblarg
e3dd1c5d77
Fix small bug in SplineHelper ( #2061 )
...
Also add comments for clamped cubic solution.
2019-11-10 22:52:24 -08:00
Oblarg
7dc7c71b58
Add feedforward components ( #2045 )
...
Add helper classes for computing feedforwards with parameters supplied by the characterization tool.
2019-11-09 20:16:42 -08:00
Oblarg
5f33d6af12
Fix ProfiledPIDSubsystem parameter name ( #2017 )
...
Change from goal to setpoint (these are two different things).
2019-11-09 09:16:50 -08:00
sciencewhiz
94843adb8f
Standardize documentation of Speed Controllers bounds ( #2043 )
...
Some were in constructor docs, some in init function docs, and some
inline in code. Move them all to class docs.
2019-11-09 09:14:53 -08:00
Thad House
9bcff37b93
Add HAL specific version of wpi_setError ( #2055 )
...
Cleans up error writing, and allows fewer headers to be included in many of the wpilibc cpp files.
This removes all usages of the hal/HAL.h header.
2019-11-08 22:53:20 -08:00
Thad House
326aecc9a0
Add error message for CAN Write Overrun ( #2062 )
2019-11-08 22:51:11 -08:00
Oblarg
00228678d4
Add requirements param to more Command APIs ( #2059 )
...
Assorted improvements to the ergonomics of declaring requirements in the new
command framework. C++ requirements list parameters have been defaulted
to an empty list, some missing C++ requirements list parameters have been
added, and both C++ and Java have been given requirements list params in
various InstantCommand wrapper methods (#2049 ), whose value is
forwarded to the command.
2019-11-08 18:30:30 -08:00
Thad House
ff39a96cee
Make DigitalOutput a DigitalSource ( #2054 )
...
It's perfectly safe to use as a DigitalSource, and can enable some cool tricks.
2019-11-07 20:03:43 -08:00
Thad House
5ccad2e8a4
Fix frc2::Timer returning incorrect timestamp values ( #2057 )
2019-11-07 20:02:27 -08:00
Thad House
629e95776a
Add VendorDeps JSON files for command libraries ( #2048 )
...
Add commandversion flag to the examples and templates json files.
2019-11-07 17:38:07 -08:00
Thad House
6858a57f72
Make notifier command tests a lot more lenient ( #2056 )
...
They don't need to be testing timing, just that the command starts and stops.
2019-11-07 17:26:29 -08:00
Thad House
0ebe32823a
Fix MyRobotStatic accidentally linking to shared command libs ( #2046 )
2019-11-06 14:06:04 -08:00
Thad House
384d00f9e6
Fix various duty cycle bugs ( #2047 )
2019-11-06 14:05:25 -08:00
Thad House
1f6850adf2
Add CAN Manufacturer for Studica ( #2050 )
2019-11-06 14:04:27 -08:00
Peter Johnson
7508aada93
Add ability to end startCompetition() main loop ( #2032 )
...
This is useful for both cleanly exiting from simulation and for unit testing
at a framework level.
This change required removing move constructor/assignment from IterativeRobot.
2019-11-05 21:33:09 -08:00
Peter Johnson
f5b4be16db
Old C++ Command: Make GetName et al public ( #2042 )
...
These used to be effectively public due to SendableBase, and are public
in the Java version.
2019-11-05 20:53:40 -08:00
Peter Johnson
e6f5c93ab1
Clean up new C++ commands ( #2027 )
...
- Remove use of std::set. The only place std::set was actually used was in ParallelRaceGroup,
but this was of minimal utility as ParallelRaceGroup checked for duplicate subsystem
requirements, so it would be very unusual to end up with duplicate commands
in any case; replaced it with a vector.
- Remove use of std::unordered_map except for SelectCommand. Replaced with vector.
- Use pImpl idiom for CommandScheduler
- Minimize include files (remove unnecessary ones)
- Reformat include file order for consistency
2019-11-05 20:52:49 -08:00
Thad House
39f46ceab6
Don't allow rising and falling values to be read from AnalogTrigger ( #2039 )
...
They can't be caught from user code
2019-11-05 20:42:01 -08:00
Thad House
d93aa2b6b2
Add missing lock in FRCDriverStation ( #2034 )
...
Switch newDataCounter to atomic
2019-11-05 20:41:16 -08:00
Austin Shalit
114ddaf81f
Fix duplicate encoders in examples ( #2033 )
2019-11-03 09:08:05 -08:00
Peter Johnson
f22d0961e3
Sim GUI: Add duty cycle support
2019-11-02 21:43:57 -07:00
Peter Johnson
3262c2badb
Sim GUI: Use new multi-channel PDP getter function
2019-11-02 21:43:57 -07:00
Peter Johnson
96d40192ae
Revert accidental change to MyRobot.cpp ( #2029 )
2019-11-02 21:06:22 -07:00
carbotaniuman
ed30d5d40e
Add JSON support for Trajectories ( #2025 )
2019-11-02 11:35:03 -07:00
Peter Johnson
2b6811eddb
Fix null pointer dereference in C++ CommandScheduler ( #2023 )
...
Java has a null check that was missing in C++ when adding default commands.
2019-11-01 23:42:01 -07:00
Thad House
1d695a1660
Add FPGA Duty Cycle support ( #1987 )
2019-11-01 23:41:30 -07:00
Thad House
509819d83f
Split the two command implementations into separate libraries ( #2012 )
...
This will allow us at the user code side to determine to include old commands, new commands or both.
2019-11-01 21:58:54 -07:00
Thad House
2ad15cae19
Add multi PDP getter and sim PCM/PDP multi arg functions ( #2014 )
2019-11-01 21:55:35 -07:00
Thad House
931b8ceefd
Add new usage reporting types from 2020v5 ( #2026 )
2019-11-01 21:54:17 -07:00
Tyler Veness
0b3821eba3
Change files with CRLF line endings to LF ( #2022 )
2019-11-01 20:26:05 -07:00
Thad House
6f159d1426
Add way to atomically check for new data, and wait otherwise ( #2015 )
2019-11-01 17:09:28 -07:00
Austin Shalit
a769f1f227
Fix bug in RamseteCommand (using degrees instead of radians) ( #2020 )
2019-11-01 13:21:02 -07:00
Oblarg
c5186d8159
Clean up PIDCommand ( #2010 )
...
PIDCommand uses a function based (callback) model, so functions designed for use in derived classes are of limited utility.
2019-11-01 13:11:55 -07:00