Thad House
dbe1e6f466
Fix missing SetDutyCycleSimDevice on Rio ( #2274 )
2020-01-15 21:33:35 -08:00
Thad House
fe597eeba1
Fix SPI DIO count for sim ( #2272 )
...
Only 26 DIO were detectable, not 31.
2020-01-15 18:58:14 -08:00
Thad House
bc159a92a7
Default sim voltage to 12v, make user rails active ( #2224 )
2020-01-04 15:07:47 -08:00
Peter Johnson
bc8f68bec7
Add sim HAL_WaitForCachedControlData ( #2221 )
2020-01-03 22:38:45 -08:00
Declan Freeman-Gleason
c4bd54ef44
Add JNI binding to suppress driver station error/warning messages ( #2200 )
...
This is to allow suppressing an ugly stack trace/error message in a unit test in #2197 . It doesn't support the full HALSIM_SetSendError callback stuff (i.e. you can only suppress, not intercept, stack traces with this).
2019-12-27 21:11:26 -06:00
Peter Johnson
7b952d599d
Add usage reporting for many new things ( #2184 )
...
- new CommandScheduler
- kinematics and odometry classes
- new PIDController
- ProfiledPIDController
- TrapezoidProfile (reported in Constraints class)
Also update instances.txt to match latest NI version.
One side effect is that a couple of classes are no longer constexpr.
2019-12-25 00:42:14 -06:00
Thad House
bdc1cab013
Add support for configuring SPI Auto Stall Config ( #2193 )
2019-12-24 12:52:58 -06:00
Thad House
0b80d566ad
Use ChipObject HMB function for LED ( #2173 )
...
It's fixed in v9 and up.
2019-12-14 21:15:32 -08:00
Peter Johnson
b78f115fcf
Work around VS2019 16.4.0 bugs ( #2171 )
...
Work around frontend bug in scoped_lock and code generation bug in reverse_iterator in gtest.
See https://github.com/google/googletest/pull/2635
2019-12-14 10:48:19 -08:00
Thad House
24c031d692
Increase SPI auto byte count to allow 32 bytes to be sent ( #2163 )
...
The FPGA now supports 32 bytes.
2019-12-07 17:18:25 -08:00
Thad House
6b4eecf5fe
Add hidden functions to get the SPI system and SPI DMA ( #2162 )
...
With the addition of stall configuration, its not very clear how it works, and seems like it would be different
per use. So adding ways to manually get them, so the functionality can be figured out how to be used.
2019-12-07 17:16:14 -08:00
Tyler Veness
5c6b8a0f45
Replace std::is_pod_v with std::is_standard_layout_v ( #2159 )
...
The former is deprecated in C++20.
2019-12-07 13:34:52 -08:00
Thad House
d8f11eb149
Hardcode channels for LSB weight ( #2153 )
...
Avoids a mutex and a lookup.
2019-12-06 20:56:40 -08:00
Thad House
b2ae75acd8
Add way to disable "no extensions found" message ( #2134 )
...
We want it enabled by default, but there have been requests for a way to disable it.
2019-12-06 20:55:36 -08:00
Thad House
d003ec2dc9
Update to 2020v9 image ( #2154 )
...
- Fix VISA include and FPGA header
- Fix missing VISA lib from executables
2019-12-04 20:38:43 -08:00
Peter Johnson
8e7cc3fe78
Add user-friendly SimDeviceSim wrappers ( #2150 )
...
This makes unit testing with SimDevice devices much easier.
2019-12-02 23:27:33 -08:00
sciencewhiz
b67d049ac2
Check status of PDP CAN reads ( #2126 )
...
Fixes #2124
2019-11-25 21:47:35 -08:00
Thad House
ce3973435e
HAL_CAN_ReceiveMessage: return MessageNotFound if no callbacks registered ( #2133 )
2019-11-25 21:45:44 -08:00
Thad House
3fcfc8ea72
Fix double disable segfaulting interrupts ( #2132 )
...
Also fixes DigitalOutput not closing correctly.
2019-11-25 21:43:58 -08:00
Tyler Veness
ffa4b907c0
Fix C++ floating point literal formatting ( #2114 )
...
Found formatting errors with this regex
"([^a-z0-9\.]\.[0-9]|[^a-z0-9\.][0-9]\.[^a-z0-9\.])" and ignored false
positives.
Fixes #2112 .
2019-11-20 21:48:15 -08:00
Thad House
f62e23f1af
Add Doxygen for new HAL interfaces ( #2110 )
2019-11-20 16:21:07 -08:00
Thad House
6f6c6da9f5
Updates to addressable LED ( #2098 )
...
Only PWM Headers are supported, so enforce that.
Also fixes some init checks and init order checks.
2019-11-18 15:25:04 -08:00
Peter Johnson
a4c9e4ec28
Add AddressableLED simulation support
2019-11-18 00:51:59 -08:00
Thad House
8ed2059074
Add AddressableLED ( #2092 )
2019-11-17 16:39:38 -08:00
Thad House
db2c3dddd7
Use DMA Global Number for DMA Index ( #2085 )
2019-11-15 17:32:29 -08:00
Thad House
82b2170feb
Add DMA support to HAL and WPILibC ( #2080 )
2019-11-14 22:52:34 -08:00
Thad House
5510960068
Use kNumSystems for DutyCycle count in Ports ( #2083 )
2019-11-14 12:15:47 -08:00
Thad House
b7bc1ea745
Update to 2020v6 image ( #2078 )
2019-11-13 21:35:52 -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
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
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
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
Thad House
1d695a1660
Add FPGA Duty Cycle support ( #1987 )
2019-11-01 23:41:30 -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
Thad House
6f159d1426
Add way to atomically check for new data, and wait otherwise ( #2015 )
2019-11-01 17:09:28 -07:00
Thad House
1c1e0c9a6a
Add HAL_SetAllSolenoids to sim ( #2004 )
2019-10-30 21:29:35 -07:00
Thad House
f6b844ea30
Move HAL Interrupt struct to anonymous namespace ( #2003 )
2019-10-28 22:32:28 -07:00
Thad House
a72f809911
Add extern C to DigitalGlitchFilterJNI ( #2002 )
2019-10-28 22:30:04 -07:00
Thad House
a3820bbdfa
Remove HAL_BaseInitialize ( #1981 )
2019-10-24 20:26:11 -07:00
Thad House
a83fb47933
Update to 2020v5 image ( #1983 )
...
* Update to 2020v5 image
2019-10-24 12:14:22 -07:00
Thad House
103c1b121c
Remove DS caching from the HAL level ( #1971 )
...
With updates to netcomm, this is no longer required.
2019-10-23 20:25:07 -07:00
Peter Johnson
46ad95512e
SimDeviceData: Add missing null check
2019-10-21 16:16:17 -07:00