blob: b6b5200704baa72498800dcf82da5e5ac09ffd44 [file] [log] [blame]
Brian Silverman26e4e522015-12-17 01:56:40 -05001/*----------------------------------------------------------------------------*/
2/* Copyright (c) FIRST 2008. All Rights Reserved.
3 */
4/* Open Source Software - may be modified and shared by FRC teams. The code */
5/* must be accompanied by the FIRST BSD license file in $(WIND_BASE)/WPILib. */
6/*----------------------------------------------------------------------------*/
7
8#include "PIDSource.h"
9
10/**
11 * Set which parameter you are using as a process control variable.
12 *
13 * @param pidSource An enum to select the parameter.
14 */
15void PIDSource::SetPIDSourceType(PIDSourceType pidSource) {
16 m_pidSource = pidSource;
17}
18
19PIDSourceType PIDSource::GetPIDSourceType() const {
20 return m_pidSource;
21}