mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[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:
@@ -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();
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user