2017-12-04 23:28:33 -08:00
|
|
|
/*----------------------------------------------------------------------------*/
|
2020-03-31 20:43:04 -07:00
|
|
|
/* Copyright (c) 2017-2020 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. */
|
|
|
|
|
/*----------------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
|
|
#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
|