2018-10-02 20:55:03 -07:00
|
|
|
/*----------------------------------------------------------------------------*/
|
2019-09-14 15:22:54 -05:00
|
|
|
/* Copyright (c) 2018-2019 FIRST. All Rights Reserved. */
|
2018-10-02 20:55:03 -07: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. */
|
|
|
|
|
/*----------------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
|
|
#include "shuffleboard/MockActuatorSendable.h"
|
|
|
|
|
|
2019-09-14 15:22:54 -05:00
|
|
|
#include "frc/smartdashboard/SendableRegistry.h"
|
|
|
|
|
|
2018-10-02 20:55:03 -07:00
|
|
|
using namespace frc;
|
|
|
|
|
|
2019-09-14 15:22:54 -05:00
|
|
|
MockActuatorSendable::MockActuatorSendable(wpi::StringRef name) {
|
|
|
|
|
SendableRegistry::GetInstance().Add(this, name);
|
2018-10-02 20:55:03 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void MockActuatorSendable::InitSendable(SendableBuilder& builder) {
|
|
|
|
|
builder.SetActuator(true);
|
|
|
|
|
}
|