mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
Remove functions in LiveWindow deprecated since 2018 (#1716)
The Java versions were already accidentally removed in #1059.
This commit is contained in:
committed by
Peter Johnson
parent
1d0c05d4f8
commit
b630b63ef0
@@ -1,5 +1,5 @@
|
||||
/*----------------------------------------------------------------------------*/
|
||||
/* Copyright (c) 2012-2018 FIRST. All Rights Reserved. */
|
||||
/* Copyright (c) 2012-2019 FIRST. All Rights Reserved. */
|
||||
/* Open Source Software - may be modified and shared by FRC teams. The code */
|
||||
/* must be accompanied by the FIRST BSD license file in the root directory of */
|
||||
/* the project. */
|
||||
@@ -60,66 +60,6 @@ LiveWindow* LiveWindow::GetInstance() {
|
||||
return &instance;
|
||||
}
|
||||
|
||||
void LiveWindow::Run() { UpdateValues(); }
|
||||
|
||||
void LiveWindow::AddSensor(const wpi::Twine& subsystem, const wpi::Twine& name,
|
||||
Sendable* component) {
|
||||
Add(component);
|
||||
component->SetName(subsystem, name);
|
||||
}
|
||||
|
||||
void LiveWindow::AddSensor(const wpi::Twine& subsystem, const wpi::Twine& name,
|
||||
Sendable& component) {
|
||||
Add(&component);
|
||||
component.SetName(subsystem, name);
|
||||
}
|
||||
|
||||
void LiveWindow::AddSensor(const wpi::Twine& subsystem, const wpi::Twine& name,
|
||||
std::shared_ptr<Sendable> component) {
|
||||
Add(component);
|
||||
component->SetName(subsystem, name);
|
||||
}
|
||||
|
||||
void LiveWindow::AddActuator(const wpi::Twine& subsystem,
|
||||
const wpi::Twine& name, Sendable* component) {
|
||||
Add(component);
|
||||
component->SetName(subsystem, name);
|
||||
}
|
||||
|
||||
void LiveWindow::AddActuator(const wpi::Twine& subsystem,
|
||||
const wpi::Twine& name, Sendable& component) {
|
||||
Add(&component);
|
||||
component.SetName(subsystem, name);
|
||||
}
|
||||
|
||||
void LiveWindow::AddActuator(const wpi::Twine& subsystem,
|
||||
const wpi::Twine& name,
|
||||
std::shared_ptr<Sendable> component) {
|
||||
Add(component);
|
||||
component->SetName(subsystem, name);
|
||||
}
|
||||
|
||||
void LiveWindow::AddSensor(const wpi::Twine& type, int channel,
|
||||
Sendable* component) {
|
||||
Add(component);
|
||||
component->SetName("Ungrouped",
|
||||
type + Twine('[') + Twine(channel) + Twine(']'));
|
||||
}
|
||||
|
||||
void LiveWindow::AddActuator(const wpi::Twine& type, int channel,
|
||||
Sendable* component) {
|
||||
Add(component);
|
||||
component->SetName("Ungrouped",
|
||||
type + Twine('[') + Twine(channel) + Twine(']'));
|
||||
}
|
||||
|
||||
void LiveWindow::AddActuator(const wpi::Twine& type, int module, int channel,
|
||||
Sendable* component) {
|
||||
Add(component);
|
||||
component->SetName("Ungrouped", type + Twine('[') + Twine(module) +
|
||||
Twine(',') + Twine(channel) + Twine(']'));
|
||||
}
|
||||
|
||||
void LiveWindow::Add(std::shared_ptr<Sendable> sendable) {
|
||||
std::lock_guard<wpi::mutex> lock(m_impl->mutex);
|
||||
auto& comp = m_impl->components[sendable.get()];
|
||||
|
||||
Reference in New Issue
Block a user