2017-12-04 23:28:33 -08:00
|
|
|
/*----------------------------------------------------------------------------*/
|
2019-07-07 19:17:14 -07:00
|
|
|
/* Copyright (c) 2017-2019 FIRST. All Rights Reserved. */
|
2017-12-04 23:28:33 -08:00
|
|
|
/* 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. */
|
|
|
|
|
/*----------------------------------------------------------------------------*/
|
|
|
|
|
|
2018-07-20 00:03:45 -07:00
|
|
|
#include "frc/smartdashboard/SendableBase.h"
|
2017-12-04 23:28:33 -08:00
|
|
|
|
2019-09-14 15:22:54 -05:00
|
|
|
#include "frc/smartdashboard/SendableRegistry.h"
|
2017-12-04 23:28:33 -08:00
|
|
|
|
|
|
|
|
using namespace frc;
|
|
|
|
|
|
|
|
|
|
SendableBase::SendableBase(bool addLiveWindow) {
|
2019-09-14 15:22:54 -05:00
|
|
|
if (addLiveWindow)
|
|
|
|
|
SendableRegistry::GetInstance().AddLW(this, "");
|
|
|
|
|
else
|
|
|
|
|
SendableRegistry::GetInstance().Add(this, "");
|
2017-12-04 23:28:33 -08:00
|
|
|
}
|