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.
|
2015-07-14 20:37:52 -07:00
|
|
|
|
2018-07-20 00:03:45 -07:00
|
|
|
#include "frc/interfaces/Potentiometer.h"
|
2016-09-25 16:50:13 -07:00
|
|
|
|
2018-07-20 00:03:45 -07:00
|
|
|
#include "frc/Utility.h"
|
2015-07-14 20:37:52 -07:00
|
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
}
|