mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
25 lines
522 B
C++
25 lines
522 B
C++
#ifndef SetPivotSetpoint_H
|
|
#define SetPivotSetpoint_H
|
|
|
|
#include "WPILib.h"
|
|
|
|
/**
|
|
* Moves the pivot to a given angle. This command finishes when it is within
|
|
* the tolerance, but leaves the PID loop running to maintain the position.
|
|
* Other commands using the pivot should make sure they disable PID!
|
|
*/
|
|
class SetPivotSetpoint: public Command {
|
|
public:
|
|
SetPivotSetpoint(double setpoint);
|
|
void Initialize();
|
|
void Execute();
|
|
bool IsFinished();
|
|
void End();
|
|
void Interrupted();
|
|
|
|
private:
|
|
double setpoint;
|
|
};
|
|
|
|
#endif
|