Peter Johnson
9206b47d67
[wpilibc] ADIS16448, ADIS16470: Initialize member pointers ( #6282 )
2024-01-21 11:49:32 -08:00
Peter Johnson
3928ed5647
[sim] Sim GUI DS: Add "Disconnected" state and start in it ( #6218 )
...
The default state for the DS in the simulated HAL is changed to disconnected.
The FMS view is now only editable in DS disconnected state.
This enables more robot and field-like testing of robot code, as the
alliance color and other parameters start in invalid states and are
only set when the DS connects.
2024-01-20 21:10:02 -08:00
David Vo
d198605562
[wpilibc] SysIdRoutineLog: Fix state log entry name typo ( #6261 )
...
The Java version has a hyphen between test-state and the mechanism name.
2024-01-19 20:42:57 -08:00
Tyler Veness
9227d09960
[wpilib] Fix outdated DifferentialDrive docs ( #6249 )
...
They accidentally got reverted when undeprecating MotorController in the
review process for #6053 .
2024-01-19 20:34:58 -08:00
Jonah
d392570659
[wpilib] SysIdRoutineLog: Defer creation of state log entry ( #6259 )
2024-01-19 17:43:18 -08:00
Isaac Turner
30965b20cf
[wpilibc] Use std::atomic in ADIS classes ( #6217 )
2024-01-15 22:42:19 -08:00
Tyler Veness
b482321c0d
[commands] Replace SysId hash map with if statements ( #6209 )
...
This is much more efficient.
2024-01-12 12:36:59 -08:00
Isaac Turner
d181e353a0
[wpilib] ADIS16470: Add no-param GetAngle and GetRate ( #6184 )
...
This helps with backwards compatibility.
2024-01-12 11:00:42 -08:00
Isaac Turner
fa5b604f16
[wpilibc] Remove unused includes ( #6208 )
2024-01-12 10:58:35 -08:00
Tyler Veness
67e8306819
gitattributes: Mark C++ source files as text ( #6210 )
...
Some C++ files had been checked in with CRLF line endings.
This fixes those and also fixes future commits.
2024-01-12 10:53:56 -08:00
Tyler Veness
ba9c21cf38
[wpilib] Fix SysId log key for acceleration ( #6196 )
...
Also add to docs that logging acceleration and current is optional.
2024-01-10 20:48:23 -08:00
sciencewhiz
b1b03bed85
[wpilib] Update MotorControllerGroup deprecation message ( #6171 )
...
The current message could be read as encouraging the use of CAN motor
controllers. This tries to make it more clear.
2024-01-07 17:06:26 -08:00
Eli Barnett
a2e4d0b15d
[docs] Fix docs for SysID routine ( #6164 )
2024-01-05 22:05:09 -08:00
Tyler Veness
0a46a3a618
[wpilib] Make ADXL345 default I2C address public ( #6163 )
...
pybind needs it.
2024-01-05 16:59:30 -08:00
Tyler Veness
f94e3d81b9
[docs] Fix SysId routine JavaDoc warnings ( #6159 )
2024-01-05 16:03:52 -08:00
Tyler Veness
6bed82a18e
[wpilibc] Clean up C++ SysId routine ( #6160 )
2024-01-05 15:22:52 -08:00
Starlight220
4595f84719
[wpilib] Report LiveWindow-enabled-in-test ( #6158 )
2024-01-05 11:57:14 -08:00
Eli Barnett
707cb06105
[wpilib] Add SysIdRoutine logging utility and command factory ( #6033 )
...
Co-authored-by: Drew Williams <williams.r.drew@gmail.com >
Co-authored-by: Peter Johnson <johnson.peter@gmail.com >
Co-authored-by: Tyler Veness <calcmogul@gmail.com >
2024-01-05 11:50:23 -08:00
Starlight220
3e40b9e5da
[wpilib] Correct SmartDashboard usage reporting ( #6157 )
2024-01-05 11:18:29 -08:00
Tyler Veness
106518c3f8
[docs] Fix wpilibj JavaDoc warnings ( #6154 )
2024-01-05 07:35:59 -08:00
m10653
13f4460e00
[docs] Add missing docs to enum fields (NFC) ( #6150 )
...
Co-authored-by: Tyler Veness <calcmogul@gmail.com >
2024-01-04 21:36:26 -08:00
Tyler Veness
f29a7d2e50
[docs] Add missing JavaDocs ( #6146 )
2024-01-04 08:38:06 -08:00
Tyler Veness
ad0859a8c9
[docs] Add missing JavaDocs ( #6125 )
2024-01-01 22:56:23 -08:00
Tyler Veness
91d8837c11
[wpilib] Make protected fields in accelerometers/gyros private ( #6134 )
...
This avoids needing add redundant JavaDocs to them, and better reflects
how we design our modern classes (the classes modified here were around
with minimal changes since 2008 or so).
2024-01-01 16:49:50 -08:00
Tyler Veness
e7c9f27683
[wpilib] Add functional interface equivalents to MotorController ( #6053 )
...
This does not deprecate any current functionality, but prepares the way for future deprecation.
The drive classes now accept void(double) functions, which makes them more flexible.
The C++ API ended up a bit more verbose, but the Java API is really concise with method references, which is >80% of our userbase. For example:
`DifferentialDrive drive = new DifferentialDrive(m_leftMotor::set, m_rightMotor::set);`
Lambdas can be passed to interoperate with vendor motor controller APIs that don't have e.g., set(double), so CTRE doesn't have to maintain their WPI_ classes anymore.
MotorControllerGroup was replaced with PWMMotorController.addFollower() for PWM motor controllers. Users of CAN motor controllers should use their vendor's follower functionality.
2024-01-01 13:37:51 -08:00
sciencewhiz
7d3e4ddba9
[docs] Add warning about using user button to docs (NFC) ( #6129 )
2024-01-01 11:53:21 -08:00
Thad House
f9aabc5ab2
[wpilib] Throw early when EventLoop is modified while running ( #6115 )
2023-12-31 22:45:10 -08:00
Thad House
af46034b7f
[wpilib] Document only first party controllers are guaranteed to have correct mapping ( #6112 )
2023-12-30 09:16:59 -06:00
Gold856
141241d2d6
[wpilib] Fix usage reporting for static classes ( #6090 )
2023-12-26 23:16:55 -06:00
Bryce Roethel
ab78b930e9
[wpilib] ADIS16470: Add access to all 3 axes ( #6074 )
2023-12-26 13:39:37 -08:00
Tyler Veness
795d4be9fd
[wpilib] Fix precision issue in Color round-and-clamp ( #6100 )
2023-12-26 13:38:15 -08:00
sciencewhiz
2441b57156
[wpilib] Add PWMSparkFlex MotorController ( #6089 )
2023-12-24 01:47:38 -06:00
Asa Anderson
1dba26c937
[wpilib] Add method to get breaker fault at a specific channel in PowerDistribution[Sticky]Faults ( #5521 )
...
Co-authored-by: Ryan Blue <ryanzblue@gmail.com >
2023-12-23 12:14:13 -08:00
NC GEARS FRC 1918
c1178d5add
[wpilib] Add StadiaController and command wrapper ( #6083 )
2023-12-23 08:15:05 -08:00
Ryan Blue
4059e0cd9f
[hal,wpilib] Add function to control "Radio" LED ( #6073 )
2023-12-22 10:57:52 -08:00
Ryan Blue
0b2cfb3abc
[dlt] Change datalogtool default folder to logs folder ( #6079 )
...
Also fix straggling documentation.
2023-12-22 10:54:17 -08:00
Tyler Veness
df5e439b0c
[wpilib] PS4Controller: enable usage reporting ( #6081 )
2023-12-22 12:33:03 -06:00
sciencewhiz
6f23d32fe1
[wpilib] AddressableLED: Update warning about single driver (NFC) ( #6069 )
...
Say that multiple strips can be used in series.
2023-12-20 22:32:16 -06:00
Tyler Veness
ab15dae887
[wpilib] ArcadeDrive: Fix max output handling ( #6051 )
2023-12-15 09:18:45 -08:00
Thad House
85c9ae6eff
[wpilib] Fix PS5 Controller mappings ( #6050 )
2023-12-14 20:51:32 -08:00
Peter Johnson
d9b504bc84
[wpilib] DataLogManager: Change sim location to logs subdir ( #6039 )
2023-12-11 20:21:06 -08:00
Tyler Veness
90757b9e90
[wpilib] Make Color::HexString() constexpr ( #5985 )
...
Related improvements to wpi::ct_string:
* Implicitly convert to std::string
* Add operator== for std::string, std::string_view, and const Char*
2023-12-04 21:20:49 -08:00
Tyler Veness
2bb1409b82
Clean up Java style ( #5990 )
...
Also make equivalent changes in C++ where applicable.
Co-authored-by: Sriman Achanta <68172138+srimanachanta@users.noreply.github.com >
2023-12-03 16:21:32 -08:00
Tyler Veness
ca272de400
[build] Fix Gradle compile_commands.json and clang-tidy warnings ( #5977 )
2023-12-02 21:20:43 -08:00
Sriman Achanta
7ed900ae3a
[wpilib] Add hex string constructor to Color and Color8Bit ( #5063 )
...
Co-authored-by: Tyler Veness <calcmogul@gmail.com >
2023-12-01 10:26:58 -08:00
Peter Johnson
5cc923de33
[wpilib] DataLogManager: Use logs subdirectory on USB drives ( #5975 )
2023-11-30 23:13:51 -08:00
Tyler Veness
7bc89c4322
[wpilib] Update getAlliance() docs (NFC) ( #5971 )
...
kInvalid was replaced with an optional.
2023-11-28 10:03:12 -08:00
Starlight220
423fd75fa8
[wpilib] Default LiveWindowEnabledInTest to false ( #5950 )
2023-11-23 10:56:47 -08:00
Tyler Veness
b1fad062f7
[wpilib] Use RKDP in DifferentialDrivetrainSim ( #5931 )
2023-11-17 10:41:18 -06:00
Peter Johnson
e117274a67
[wpilib] Change default Rio log dir from /home/lvuser to /home/lvuser/logs ( #5899 )
2023-11-14 12:20:51 -08:00