Files
allwpilib/wpilibc/src/main/native/cpp/smartdashboard/SendableBase.cpp

20 lines
788 B
C++
Raw Normal View History

/*----------------------------------------------------------------------------*/
/* Copyright (c) 2017-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/smartdashboard/SendableBase.h"
#include "frc/smartdashboard/SendableRegistry.h"
using namespace frc;
SendableBase::SendableBase(bool addLiveWindow) {
if (addLiveWindow)
SendableRegistry::GetInstance().AddLW(this, "");
else
SendableRegistry::GetInstance().Add(this, "");
}