/*----------------------------------------------------------------------------*/ /* Copyright (c) 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. */ /*----------------------------------------------------------------------------*/ #include "frc/shuffleboard/SendableCameraWrapper.h" #include #include #include #include #include "frc/smartdashboard/SendableBuilder.h" #include "frc/smartdashboard/SendableRegistry.h" namespace frc { namespace detail { std::shared_ptr& GetSendableCameraWrapper( CS_Source source) { static wpi::DenseMap> wrappers; return wrappers[static_cast(source)]; } void AddToSendableRegistry(frc::Sendable* sendable, std::string name) { SendableRegistry::GetInstance().Add(sendable, name); } } // namespace detail void SendableCameraWrapper::InitSendable(SendableBuilder& builder) { builder.AddStringProperty(".ShuffleboardURI", [this] { return m_uri; }, nullptr); } } // namespace frc