SubZero Common
Common library components for an FRC CommandRobot
Loading...
Searching...
No Matches
ITurnToTarget.h
Go to the documentation of this file.
1#pragma once
2
3#include <frc/controller/HolonomicDriveController.h>
4#include <frc/geometry/Pose2d.h>
5#include <frc/geometry/Rotation2d.h>
6#include <frc/kinematics/ChassisSpeeds.h>
7
8namespace subzero {
9
16public:
17 virtual frc::ChassisSpeeds GetSpeedCorrection() = 0;
18 virtual frc::ChassisSpeeds BlendWithInput(const frc::ChassisSpeeds &other,
19 double correctionFactor) = 0;
20 virtual bool AtGoal() = 0;
21 virtual void Update() = 0;
22};
23} // namespace subzero
Interface for classes that move towards a target while maintaining driver input.
virtual frc::ChassisSpeeds GetSpeedCorrection()=0
virtual frc::ChassisSpeeds BlendWithInput(const frc::ChassisSpeeds &other, double correctionFactor)=0
virtual void Update()=0
virtual bool AtGoal()=0