2020-12-26 14:12:05 -08:00
|
|
|
// Copyright (c) FIRST and other WPILib contributors.
|
|
|
|
|
// Open Source Software; you can modify and/or share it under the terms of
|
|
|
|
|
// the WPILib BSD license file in the root directory of this project.
|
2018-10-02 20:55:03 -07:00
|
|
|
|
|
|
|
|
#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);
|
|
|
|
|
}
|