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.
|
2017-12-04 23:28:33 -08:00
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2019-09-14 15:22:54 -05:00
|
|
|
#include <wpi/deprecated.h>
|
2017-12-04 23:28:33 -08:00
|
|
|
|
2018-07-20 00:03:45 -07:00
|
|
|
#include "frc/smartdashboard/Sendable.h"
|
2019-09-14 15:22:54 -05:00
|
|
|
#include "frc/smartdashboard/SendableHelper.h"
|
2017-12-04 23:28:33 -08:00
|
|
|
|
|
|
|
|
namespace frc {
|
|
|
|
|
|
2019-09-14 15:22:54 -05:00
|
|
|
class SendableBase : public Sendable, public SendableHelper<SendableBase> {
|
2017-12-04 23:28:33 -08:00
|
|
|
public:
|
2018-05-31 20:47:15 -07:00
|
|
|
/**
|
2020-03-31 20:43:04 -07:00
|
|
|
* Creates an instance of the sensor base
|
|
|
|
|
*
|
|
|
|
|
* @deprecated use Sendable and SendableHelper
|
2018-05-31 20:47:15 -07:00
|
|
|
*
|
|
|
|
|
* @param addLiveWindow if true, add this Sendable to LiveWindow
|
|
|
|
|
*/
|
2019-09-14 15:22:54 -05:00
|
|
|
WPI_DEPRECATED("use Sendable and SendableHelper")
|
2017-12-04 23:28:33 -08:00
|
|
|
explicit SendableBase(bool addLiveWindow = true);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace frc
|