Skip to content

Commit

Permalink
Put ClawHAL into RobotControlData.h
Browse files Browse the repository at this point in the history
  • Loading branch information
Rvistix committed Nov 24, 2024
1 parent 25a8d26 commit 53decf8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
12 changes: 12 additions & 0 deletions src/main/include/RobotControlData.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,23 @@ struct SwerveInput{

struct ClawInput
{
void ManualMovePivot(double speed);
double GetAngle();
void ProfiledMoveToAngle(double angle);
double GetSpeed();
double SetPosition();
void PublishDebugInfo();
void ResetProfiledMoveState();

// TODO - define members
};

struct ClawOutput
{
double GetAngle();
double GetSpeed();
double SetPosition();

// TODO - define members
};

Expand Down
4 changes: 2 additions & 2 deletions src/main/include/subsystems/ClawHAL.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include <frc/trajectory/TrapezoidProfile.h>

class ClawHAL
{
{
private:
double m_intakeSpeed = 0.0;

Expand All @@ -21,7 +21,7 @@ class ClawHAL
double GetAngle();
void ProfiledMoveToAngle(double angle);
double GetSpeed();
void SetPosition();
double SetPosition();
void PublishDebugInfo();
void ResetProfiledMoveState();
};
Expand Down

0 comments on commit 53decf8

Please sign in to comment.