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"
|
|
|
|
|
|
2021-06-13 16:38:05 -07:00
|
|
|
#include <wpi/sendable/SendableBuilder.h>
|
|
|
|
|
#include <wpi/sendable/SendableRegistry.h>
|
2021-06-06 16:13:58 -07:00
|
|
|
|
2021-05-31 10:21:34 -07:00
|
|
|
MockActuatorSendable::MockActuatorSendable(std::string_view name) {
|
2021-06-15 23:06:03 -07:00
|
|
|
wpi::SendableRegistry::Add(this, name);
|
2018-10-02 20:55:03 -07:00
|
|
|
}
|
|
|
|
|
|
2021-06-13 16:38:05 -07:00
|
|
|
void MockActuatorSendable::InitSendable(wpi::SendableBuilder& builder) {
|
2018-10-02 20:55:03 -07:00
|
|
|
builder.SetActuator(true);
|
|
|
|
|
}
|