blob: ef3646e6ed5f2bb621dcf8344c2c39767b206d29 [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/*----------------------------------------------------------------------------*/
Brian Silverman1a675112016-02-20 20:42:49 -05007
Brian Silverman26e4e522015-12-17 01:56:40 -05008#pragma once
9
10#include "SafePWM.h"
11#include "SpeedController.h"
12#include "PIDOutput.h"
13
14/**
15 * IFI Victor Speed Controller
16 */
17class Victor : public SafePWM, public SpeedController
18{
19public:
20 explicit Victor(uint32_t channel);
21 virtual ~Victor() = default;
22 virtual void Set(float value, uint8_t syncGroup = 0);
23 virtual float Get() const;
24 virtual void Disable();
25
26 virtual void PIDWrite(float output) override;
27};