[wpilib] Fix multiple motor safety issues (#4784)

Java was missing the motor safety thread entirely
C++ accidentally used a manual reset event, causing the motor safety thread to spin.
C++ PWMMotorController would not feed the watch kitty.
Both languages would call feed() from the StopMotor call, causing some ping ponging.
This commit is contained in:
Thad House
2022-12-08 19:47:47 -08:00
committed by GitHub
parent 989c9fb29a
commit 69a66ec5ec
5 changed files with 50 additions and 4 deletions

View File

@@ -24,7 +24,7 @@ class Thread : public wpi::SafeThread {
};
void Thread::Main() {
wpi::Event event{true, false};
wpi::Event event{false, false};
HAL_ProvideNewDataEventHandle(event.GetHandle());
int safetyCounter = 0;