blob: 9ac097be13f5e2715f948b4d07dbc451027ed52f [file] [log] [blame]
Brian Silverman26e4e522015-12-17 01:56:40 -05001/*----------------------------------------------------------------------------*/
Brian Silverman1a675112016-02-20 20:42:49 -05002/* Copyright (c) FIRST 2015-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 <interfaces/Potentiometer.h>
9#include <Utility.h>
10
11void Potentiometer::SetPIDSourceType(PIDSourceType pidSource) {
12 if (wpi_assert(pidSource == PIDSourceType::kDisplacement)) {
13 m_pidSource = pidSource;
14 }
15}