Peter Johnson
eee30c49e2
[wpilib] Remove LiveWindow ( #7733 )
...
This will be replaced by a different mechanism, but removing it eases
the initial implementation burden of a new Telemetry/Sendable framework.
2025-01-25 10:52:19 -08:00
Peter Johnson
adbe95e610
[wpilib] Remove Shuffleboard API ( #7730 )
2025-01-24 23:47:42 -08:00
Thad House
5898cdd5c3
[hal, wpilib] Remove interrupt ( #7724 )
2025-01-23 21:45:18 -08:00
Thad House
e2b6beb28a
[hal, wpilib] Remove DigitalGlitchFilter ( #7725 )
2025-01-23 21:44:18 -08:00
Thad House
5a6c895b87
[hal, wpilib] Remove built in accelerometer ( #7702 )
2025-01-17 14:06:09 -08:00
Thad House
1600e773f4
[hal, wpilib] Remove DMA ( #7701 )
2025-01-17 14:05:34 -08:00
Thad House
f80874dd4b
[hal, wpilib] Remove analog accumulator and analog gyro ( #7697 )
...
The 2 high level classes were temporarily kept to keep the examples compiling. We will remove those when we have the interface into the built in IMU.
2025-01-17 12:58:31 -08:00
Thad House
92f0a3c961
[hal, wpilib] Remove SPI support ( #7678 )
2025-01-17 00:22:29 -08:00
Thad House
ff1b2a205e
[hal, wpilib] Remove analog output ( #7696 )
2025-01-16 23:20:44 -08:00
Thad House
5017393b3a
[hal, wpilib] Remove relay ( #7695 )
2025-01-16 23:20:07 -08:00
Peter Johnson
d9f8fded09
Merge branch 'main' into 2027
2025-01-16 23:17:59 -08:00
Thad House
1cad4f64a4
[hal] Add high level way of getting systemserver NT instance ( #7683 )
2025-01-16 10:49:40 -07:00
Thad House
58cb395d76
[hal] Add systemcore duty cycle ( #7682 )
2025-01-15 12:57:31 -07:00
Thad House
fa71fb55a2
[wpilib] Remove I2C Warnings ( #7677 )
...
SystemCore won't have the I2C issues.
2025-01-14 12:31:47 -07:00
Jason Daming
fc9e413ce1
[hal, wpilib] Add note about support for WS2815 ( #7664 )
2025-01-13 12:26:54 -07:00
Thad House
09a6bc9a25
[build] Remove RoboRIO specializations from build system ( #7670 )
2025-01-13 12:23:54 -07:00
Tyler Veness
786d22049b
[wpilibc] Rename DCMotorSim getters ( #7614 )
2024-12-31 16:48:45 -08:00
Dustin Spicuzza
86137c49f5
[wpilibc] DCMotorSim: Add setAngle/setAngularVelocity (parity with Java) ( #7613 )
2024-12-31 14:30:16 -08:00
Tyler Veness
4edf52d3b6
[wpilibc] Clean up Joystick::GetDirection() ( #7612 )
2024-12-31 13:31:05 -08:00
Peter Johnson
a931a6554f
Merge branch 'main' into 2027
2024-12-29 18:22:39 -08:00
Carl Hauser
eef1bf33de
[wpilib] Fix SmartDashboard.setDefault* docs (NFC) ( #6490 )
...
Fix incorrect comments related to NT SetDefault* methods across multiple components
2024-12-29 18:41:29 -06:00
Joseph Eng
54e9c76e03
[wpilibc] Fully qualify names in error macros ( #7601 )
2024-12-28 16:59:19 -06:00
Peter Johnson
3232630a38
Merge branch 'main' into 2027
2024-12-27 19:40:43 -08:00
sciencewhiz
46d401553e
[wpilib] Add Koors40 motor controller ( #7469 )
2024-12-27 15:04:43 -06:00
Peter Johnson
2a757eaeb5
Merge branch 'main' into 2027
2024-12-26 18:55:43 -08:00
Tyler Veness
0470e51569
[upstream_utils] Upgrade to fmt 11.1.0 ( #7593 )
...
Usage of FMT_STRING() was removed since it caused compilation failures,
and https://fmt.dev/11.1/api/#compile-time-checks says it's no longer
necessary for compile-time format strings.
Fixes #7592 .
2024-12-26 19:14:02 -06:00
Peter Johnson
529bab6ca1
Merge branch 'main' into 2027
2024-12-19 20:40:37 -08:00
PJ Reiniger
9ccd73108b
[bazel] MVP for building wpilibc + commands framework ( #7231 )
2024-12-18 22:00:40 -08:00
Thad House
c8900cadc3
Add SPARKmini to PWM support ( #7504 )
2024-12-07 00:48:20 -08:00
sciencewhiz
892e062316
[hal,wpilib,wpimath] Add Usage Reporting for Choreo and PathWeaver ( #7464 )
2024-11-30 20:33:09 -08:00
sciencewhiz
9807d60566
[hal,wpilib] Change Power Distribution usage reporting to Instances ( #7465 )
...
LabVIEW doesn't appear to report PDP. This should reduce the number of
Unknowns in the parsed UsageReporting.
2024-11-30 20:32:21 -08:00
Nicholas Armstrong
b91864a5ec
[wpilib] Fix acceleration getter for DCMotorSim ( #7449 )
2024-11-29 22:15:00 -08:00
sciencewhiz
0941251375
[wpilib] Add usage reporting for loggers ( #7450 )
2024-11-29 22:13:31 -08:00
Sam Carlberg
5e1c6a84ce
[wpilibj, wpilibc] Fix LED patterns not offsetting reads ( #6948 )
...
Was causing bugs when combined with patterns that need to read back from the buffer (eg masks and overlays)
Co-authored-by: Joseph Eng <s-engjo@bsd405.org >
2024-11-28 21:25:54 -08:00
sciencewhiz
0a3ccf93c6
[wpimath] Add BangBangController Usage Reporting ( #7411 )
2024-11-20 17:00:54 -08:00
sciencewhiz
57e10755fd
[wpilib] Add usage reporting for dashboards as instances ( #7294 )
...
Detects dashboards based on network tables client identity.
2024-11-18 10:16:29 -07:00
Tyler Veness
a04c40f589
Replace std::make_pair with std::pair CTAD ( #7405 )
2024-11-17 20:29:23 -08:00
Jonah Bonner
ca51197486
[wpilib] Add timestamp getters with configurable time base ( #7378 )
2024-11-16 07:43:38 -08:00
Tyler Veness
a66fa339dc
[wpimath] Make controllers and some trajectory classes constexpr ( #7343 )
2024-11-07 14:02:11 -07:00
Ryan Blue
5a16b0e108
[wpilib] Refactor Alert ( #7279 )
...
This refactors Alert in both c++ and java to fix the issues with the current c++ implementation and improve performance.
Currently, constructing an Alert adds it to a list of Alerts with the same group and type. Activating an alert sets a flag on the alert. When the SendableAlerts is polled (GetStrings), the entire list is iterated over, filtered, and the filtered list is sorted by timestamp. This leads to a worst case O(m + nlog(n)) time complexity for GetStrings, where m and n are the count of total constructed alerts active alerts respectively. It also allocates intermediate data structures to hold the active alert strings for sorting.
This changes the implementation to improve the performance of GetStrings, by shifting the sorting overhead to Alert.Set
Constructing the Alert only initializes the alert's initial state, and initializes the SendableAlerts for the group if it is not already initialized.
Activating or deactivating an alert sets an internal flag for state tracking, and inserts or removes a structure containing the timestamp and text into a self-sorting data structure (std::set, TreeSet) containing other active alerts with the same group and type. (worst case O(log(n))
Now, SendableAlerts.GetStrings only has to iterate over the structure and copy the strings to the returned array. (amortized O(n))
This also fixes the c++ implementation by removing the need for SendableAlerts to directly access the Alert.
This also adds a helper method to SendableRegistry to force initialization of the instance to prevent static initialization ordering issues.
2024-11-06 16:09:06 -07:00
Thad House
f2d2500d1d
[wpiutil] Check MSVC Runtime ( #7301 )
2024-11-05 09:51:48 -07:00
Jade
043c155087
Fix a few clangd warnings ( #7335 )
2024-11-05 09:47:54 -07:00
Jade
debb52156c
[wpilib] Clamp sim battery voltage to 0 ( #7325 )
2024-11-03 10:37:44 -08:00
Tyler Veness
a48f3c35f4
Remove argv usage from Python scripts ( #7311 )
...
argparse will automatically read sys.argv, so we don't need to pass it
in manually. Furthermore, none of our scripts customize argv.
2024-11-02 19:09:32 -07:00
Tyler Veness
7c91b81906
[ci] Upgrade to wpiformat 2024.45 ( #7326 )
2024-11-02 17:56:55 -07:00
Peter Johnson
caae5357b7
[wpilibc] Mechanism2d: Store roots by value
2024-10-31 22:04:13 -07:00
Peter Johnson
22e91bfacd
[wpilibc] ShuffleboardInstance: Store ShuffleboardTab by value
2024-10-31 22:04:13 -07:00
Peter Johnson
f620141e0d
[wpiutil] Replace LLVM StringMap impl with std::map
...
As string_view operations on std::map<std::string> won't be integrated
until C++26, placeholder implementations are used which are less efficient
in a couple of situations (e.g. insert with hint).
2024-10-31 22:04:13 -07:00
Ryan Blue
f03e0cdf6a
[wpilib] Add explanation for HID GetBumper/Touchpad deprecations ( #7304 )
2024-10-28 19:29:42 -07:00
Ryan Blue
412c042c6c
Use LF in generated files ( #7305 )
2024-10-28 19:28:58 -07:00