mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-24 01:31:46 +00:00
SCRIPT: wpiformat
This commit is contained in:
committed by
Peter Johnson
parent
ae6bdc9d25
commit
2109161534
@@ -4,10 +4,10 @@
|
||||
|
||||
#include "wpi/smartdashboard/MechanismRoot2d.hpp"
|
||||
|
||||
#include "wpi/util/Color8Bit.hpp"
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include "wpi/util/Color8Bit.hpp"
|
||||
|
||||
using namespace wpi;
|
||||
|
||||
MechanismRoot2d::MechanismRoot2d(std::string_view name, double x, double y,
|
||||
@@ -21,7 +21,8 @@ void MechanismRoot2d::SetPosition(double x, double y) {
|
||||
Flush();
|
||||
}
|
||||
|
||||
void MechanismRoot2d::UpdateEntries(std::shared_ptr<wpi::nt::NetworkTable> table) {
|
||||
void MechanismRoot2d::UpdateEntries(
|
||||
std::shared_ptr<wpi::nt::NetworkTable> table) {
|
||||
m_xPub = table->GetDoubleTopic("x").Publish();
|
||||
m_yPub = table->GetDoubleTopic("y").Publish();
|
||||
Flush();
|
||||
|
||||
Reference in New Issue
Block a user