mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
Replace pointer constructor arguments with references, and const qualify getters where possible. Also remove redundant simulation P gain. Fixes #1146.
25 lines
640 B
C++
25 lines
640 B
C++
// Copyright (c) FIRST and other WPILib contributors.
|
|
// Open Source Software; you can modify and/or share it under the terms of
|
|
// the WPILib BSD license file in the root directory of this project.
|
|
|
|
#pragma once
|
|
|
|
#include <frc2/command/CommandHelper.h>
|
|
#include <frc2/command/WaitCommand.h>
|
|
|
|
#include "subsystems/Claw.h"
|
|
|
|
/**
|
|
* Opens the claw for one second. Real robots should use sensors, stalling
|
|
* motors is BAD!
|
|
*/
|
|
class OpenClaw : public frc2::CommandHelper<frc2::WaitCommand, OpenClaw> {
|
|
public:
|
|
explicit OpenClaw(Claw& claw);
|
|
void Initialize() override;
|
|
void End(bool interrupted) override;
|
|
|
|
private:
|
|
Claw* m_claw;
|
|
};
|