2015-07-14 20:37:52 -07:00
|
|
|
/*----------------------------------------------------------------------------*/
|
2018-01-02 09:20:21 -08:00
|
|
|
/* Copyright (c) 2015-2018 FIRST. All Rights Reserved. */
|
2015-07-14 20:37:52 -07:00
|
|
|
/* Open Source Software - may be modified and shared by FRC teams. The code */
|
2016-01-02 03:02:34 -08:00
|
|
|
/* must be accompanied by the FIRST BSD license file in the root directory of */
|
|
|
|
|
/* the project. */
|
2015-07-14 20:37:52 -07:00
|
|
|
/*----------------------------------------------------------------------------*/
|
|
|
|
|
|
2016-09-25 16:50:13 -07:00
|
|
|
#include "interfaces/Potentiometer.h"
|
|
|
|
|
|
2015-07-14 20:37:52 -07:00
|
|
|
#include <Utility.h>
|
|
|
|
|
|
2016-11-01 22:33:12 -07:00
|
|
|
using namespace frc;
|
|
|
|
|
|
2015-07-14 20:37:52 -07:00
|
|
|
void Potentiometer::SetPIDSourceType(PIDSourceType pidSource) {
|
|
|
|
|
if (wpi_assert(pidSource == PIDSourceType::kDisplacement)) {
|
|
|
|
|
m_pidSource = pidSource;
|
|
|
|
|
}
|
|
|
|
|
}
|