blob: 4e44b69594aecee476e979c11cf2fb12d6bf51cf [file] [log] [blame]
Brian Silverman26e4e522015-12-17 01:56:40 -05001/*----------------------------------------------------------------------------*/
Brian Silverman1a675112016-02-20 20:42:49 -05002/* Copyright (c) FIRST 2008-2016. All Rights Reserved. */
Brian Silverman26e4e522015-12-17 01:56:40 -05003/* Open Source Software - may be modified and shared by FRC teams. The code */
Brian Silverman1a675112016-02-20 20:42:49 -05004/* must be accompanied by the FIRST BSD license file in the root directory of */
5/* the project. */
Brian Silverman26e4e522015-12-17 01:56:40 -05006/*----------------------------------------------------------------------------*/
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}