victor.h
来自「good luck to everyone!」· C头文件 代码 · 共 34 行
H
34 行
/*----------------------------------------------------------------------------*/
/* Copyright (c) FIRST 2008. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in $(WIND_BASE)/WPILib. */
/*----------------------------------------------------------------------------*/
#ifndef VICTOR_H
#define VICTOR_H
#include "PWM.h"
#include "SpeedController.h"
#include "PIDOutput.h"
/**
* IFI Victor Speed Controller
*/
class Victor : public PWM, public SpeedController, public PIDOutput
{
public:
explicit Victor(UINT32 channel);
Victor(UINT32 slot, UINT32 channel);
virtual ~Victor();
void Set(float value);
float Get();
void PIDWrite(float output);
private:
void InitVictor();
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?