Peter Johnson
bca4b7111b
[glass] Fix PlotSeries::SetSource() ( #3991 )
...
This can be called in a delayed manner, so it's possible for
m_size to already be at maximum, which results in writing past
the end of the array. Instead, just call AppendValue().
2022-02-04 20:47:11 -08:00
Oblarg
6a6366b0d6
[commands] Add until() as alias for withInterrupt() ( #3981 )
...
This is a clearer description for the functionality.
Will deprecate withInterrupt next year.
2022-02-03 22:14:52 -08:00
Thad House
16bf2c70c5
[wpilib] Fix joystick out of range error messages ( #3988 )
2022-02-03 22:10:44 -08:00
Thad House
4b3edb742c
[wpilib] Fix ADIS16448 IMU default constructor not working in Java ( #3989 )
...
Also fixes a few related uninitialized variables in C++.
2022-02-03 22:09:12 -08:00
Thad House
fcf23fc9e9
[hal] Fix potential gamedata out of bounds read ( #3983 )
...
The size was uninitialized. If the size is smaller than the data,
NetComm just updates the size and does not initialize the data.
v2022.3.1
2022-02-01 22:22:48 -08:00
Jan-Felix Abellera
af5ef510c5
[wpilibc] Fix REV PH pulse duration units ( #3982 )
2022-02-01 20:28:48 -08:00
Jan-Felix Abellera
05401e2b81
[wpilib] Write REV PH firmware version to roboRIO to display on driver station ( #3977 )
2022-02-01 20:27:43 -08:00
Thad House
9fde0110b6
Update to 2022 v4.0 image ( #3944 )
2022-01-31 23:26:05 -08:00
sciencewhiz
b03f8ddb2e
[examples] fix incorrect variable in Arm Simulation Pref ( #3980 )
2022-01-31 22:01:31 -08:00
sciencewhiz
a26df2a022
[examples] Update ArmSimulation example to use Preferences ( #3976 )
...
This shows more real world usage then hardcoding the setpoint and PID
gains. There were no current examples using Preferences. This will also
be used to update frc-docs article for Preferences.
2022-01-31 00:17:04 -08:00
Oblarg
d68d6674e8
[examples] Armbot: rename kCos to kG ( #3975 )
2022-01-31 00:16:26 -08:00
sciencewhiz
a8f0f6bb90
[wpilibj] Fix ADIS16448 getRate to return rate instead of angle ( #3974 )
2022-01-29 20:17:57 -08:00
Thad House
dd9c92d5bf
[build] Remove debug info from examples ( #3971 )
...
They take up a LOT of disk space.
2022-01-27 20:59:13 -08:00
Thad House
84df14dd70
[rtns] Fix icons ( #3972 )
2022-01-27 20:58:07 -08:00
sciencewhiz
560094ad92
[examples] Correct Mecanum example axes ( #3955 )
2022-01-27 20:57:41 -08:00
Jan-Felix Abellera
7ea1be9c01
[wpilibc] Fix typo in hardware version for REV PDH ( #3969 )
2022-01-27 17:54:38 -08:00
Jan-Felix Abellera
700f13bffd
[wpilibj] Make methods public for Java REV PDH ( #3970 )
2022-01-27 17:54:14 -08:00
Jan-Felix Abellera
b6aa7c1aa9
[wpilibj] Make methods public for Java REVPH ( #3968 )
2022-01-27 17:53:45 -08:00
Tyler Veness
eb4d183e48
[wpimath] Fix clang-tidy bugprone-integer-division warning ( #3966 )
...
The integer conversion is deliberate.
2022-01-26 18:38:45 -08:00
Thad House
77e4e81e1e
[wpilib] Add Field widget to BuiltInWidgets in shuffleboard ( #3961 )
2022-01-24 20:33:11 -08:00
Thad House
88f5cb6eb0
[build] Publish PDBs with C++ tools ( #3960 )
2022-01-24 20:32:17 -08:00
Tyler Veness
efae552f3e
[wpimath] Remove DifferentialDriveKinematics include from odometry ( #3958 )
2022-01-24 16:02:00 -08:00
sciencewhiz
46b277421a
[glass] Update Speed Controller Type name for 2022 WPILib ( #3952 )
2022-01-21 21:30:44 -08:00
modelmat
42908126b9
[wpilib] Add DCMotorSim ( #3910 )
2022-01-21 20:42:06 -08:00
Peter Johnson
a467392cbd
[wpiutil] StackTrace: Add ability to override default implementation ( #3951 )
2022-01-21 17:22:41 -08:00
modelmat
78d0bcf49d
[templates] Add SimulationInit()/SimulationPeriodic() to robot templates ( #3943 )
2022-01-21 16:23:46 -08:00
sciencewhiz
02a0ced9b0
[wpilib] MecanumDrive: update docs for axis to match implementation (NFC) ( #3942 )
...
Added note that implementation may change in the future, #3930 .
2022-01-21 16:22:17 -08:00
shueja-personal
4ccfe1c9f2
[wpilib] Added docs clarification on units for drive class WheelSpeeds (NFC) ( #3939 )
2022-01-21 15:51:28 -08:00
Peter Johnson
830c0c5c2f
[wpilib] MechanismLigament2d: Add getters for color and line weight ( #3947 )
...
Also add missing locking in C++.
2022-01-21 15:47:44 -08:00
Peter Johnson
5548a37465
[wpilib] PowerDistribution: Add module type getter ( #3948 )
2022-01-21 15:46:44 -08:00
Thad House
2f9a600de2
[hal] Fix PCM one shot ( #3949 )
2022-01-21 15:46:08 -08:00
Thad House
559db11a20
[myRobot] Skip deploying debug libraries for myRobot deploys ( #3950 )
2022-01-21 15:45:47 -08:00
Lenny Abbas
76c78e295b
[examples] Reorder SwerveModules in SwerveControllerCommand example odometry update ( #3934 )
2022-01-21 11:04:43 -08:00
sciencewhiz
debbd5ff4b
[wpilib] Improve PowerDistribution docs (NFC) ( #3925 )
...
Add docs for switchable channel.
Use PDP/PDH appropriately and clarify differences.
Fix typos.
2022-01-20 23:33:01 -08:00
Tyler Veness
841174f302
[commands] Change command vendordep JSON version number to 1.0.0 ( #3938 )
...
While the number doesn't matter, it being old is confusing a lot of
people. We never increment the internal vendordep versions, so using a year
version number was a poor choice.
Closes #3921 .
2022-01-20 23:32:02 -08:00
sciencewhiz
8c55844f91
[wpilib] Remove comment about Mecanum right side inverted (NFC) ( #3929 )
2022-01-18 01:00:55 -08:00
Thad House
0b990bf0f5
[hal] Fix PCM sticky faults clear function crashing ( #3932 )
...
A call to the PCM clear function was using the wrong handle passed down to the CAN layer, causing an error.
2022-01-18 00:59:51 -08:00
Thad House
104d7e2abc
[hal] Don't throw exceptions in PCM JNI ( #3933 )
...
Since the CAN bus can easily become disconnected, we don't want this to crash. Instead, we just want this to report errors. This matches previous behavior.
2022-01-18 00:58:26 -08:00
Lenny Abbas
5ba69e1af1
[examples] Updated type in Java SwerveModule ( #3928 )
...
Changed turnOutput from var to double in SwerveModule. It doesn't make sense for driveOutput and turnOutput to have different types so they should both be doubles.
2022-01-17 12:20:55 -08:00
Chirag Kaushik
f3a0b5c7d7
[wpimath] Fix Java SimpleMotorFeedforward Docs (NFC) ( #3926 )
2022-01-17 09:59:04 -08:00
Tyler Veness
7f4265facc
[wpimath] Add LinearFilter::FiniteDifference() ( #3900 )
...
This allows making more general finite difference filters, like central
finite difference. SysId uses this for acceleration filtering.
v2022.2.1
2022-01-15 20:18:11 -08:00
Tyler Veness
63d1fb3bed
[wpiutil] Modify fmt to not throw on write failure ( #3919 )
...
This was causing issues with tools, as the launchers would close stdout/stderr, resulting in write failures.
2022-01-15 20:10:32 -08:00
Tyler Veness
36af6d25a5
[wpimath] Fix input vector in pose estimator docs (NFC) ( #3923 )
2022-01-15 20:03:39 -08:00
Thad House
8f387f7255
[wpilibj] Switch ControlWord mutex to actual reentrant mutex ( #3922 )
...
It seems like the JVM does not handle recursive calls to object monitor based locks correctly. A few bugs in the past have been reported to have caused deadlocks if this occurs. It looks like the version of Java we use is fixed, but there could be other bugs, and it seems like this area of the code isn't tested much. Based on the stacks reported in #3896 , it really seems like this is occurring. So we're going to attempt to switch to explicit mutex based classes, which shouldn't have bugs like this, and we will see if that fixes the issue.
2022-01-15 15:24:06 -08:00
David Vo
792e735e08
[wpimath] Move TrajectoryGenerator::SetErrorHandler definition to .cpp ( #3920 )
...
Otherwise this function causes linking errors when used on Windows.
2022-01-15 08:58:49 -08:00
Tyler Veness
3b76de83eb
[commands] Fix ProfiledPIDCommand use-after-free ( #3904 )
...
Fixes #3903 .
2022-01-14 23:56:48 -08:00
PJ Reiniger
ad9f738cfa
[fieldimages] Fix maven publishing ( #3897 )
2022-01-14 23:55:10 -08:00
modelmat
49455199e5
[examples] Use left/rightGroup.Get() for simulator inputs to fix inversions ( #3908 )
2022-01-14 23:54:20 -08:00
modelmat
64426502ea
[wpimath] Fix arm -> flywheel typo (NFC) ( #3911 )
2022-01-14 23:53:45 -08:00
Tyler Veness
8cc112d196
[wpiutil] Fix wpi::array for move-only types ( #3917 )
...
Fixes #3916 .
2022-01-14 23:53:12 -08:00