[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.
This commit is contained in:
Peter Johnson
2025-01-25 10:52:19 -08:00
committed by GitHub
parent adbe95e610
commit eee30c49e2
88 changed files with 85 additions and 1356 deletions

View File

@@ -6,7 +6,6 @@
#include <frc/DriverStation.h>
#include <frc/internal/DriverStationModeThread.h>
#include <frc/livewindow/LiveWindow.h>
#include <hal/DriverStation.h>
#include <networktables/NetworkTable.h>
@@ -45,14 +44,12 @@ void Robot::StartCompetition() {
wpi::WaitForObject(event.GetHandle());
}
} else if (IsTest()) {
frc::LiveWindow::SetEnabled(true);
modeThread.InTest(true);
Test();
modeThread.InTest(false);
while (IsTest() && IsEnabled()) {
wpi::WaitForObject(event.GetHandle());
}
frc::LiveWindow::SetEnabled(false);
} else {
modeThread.InTeleop(true);
Teleop();

View File

@@ -4,16 +4,11 @@
#include "Robot.h"
#include <frc/livewindow/LiveWindow.h>
#include <frc/smartdashboard/SmartDashboard.h>
#include <wpi/print.h>
// Run robot periodic() functions for 5 ms, and run controllers every 10 ms
Robot::Robot() : frc::TimesliceRobot{5_ms, 10_ms} {
// LiveWindow causes drastic overruns in robot periodic functions that will
// interfere with controllers
frc::LiveWindow::DisableAllTelemetry();
// Runs for 2 ms after robot periodic functions
Schedule([=] {}, 2_ms);

View File

@@ -4,14 +4,8 @@
#include "Robot.h"
#include <frc/livewindow/LiveWindow.h>
// Run robot periodic() functions for 5 ms, and run controllers every 10 ms
Robot::Robot() : frc::TimesliceRobot{5_ms, 10_ms} {
// LiveWindow causes drastic overruns in robot periodic functions that will
// interfere with controllers
frc::LiveWindow::DisableAllTelemetry();
// Runs for 2 ms after robot periodic functions
Schedule([=] {}, 2_ms);