blob: 38560907d1e3f2a423ac72f5053c2d013a3b6cd7 [file] [log] [blame]
Brian Silverman26e4e522015-12-17 01:56:40 -05001/*----------------------------------------------------------------------------*/
2/* Copyright (c) FIRST 2015. 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 <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}