2020-12-26 14:12:05 -08:00
|
|
|
// 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.
|
2017-10-17 21:37:58 -07:00
|
|
|
|
2019-08-25 23:55:59 -04:00
|
|
|
#pragma once
|
2017-10-17 21:37:58 -07:00
|
|
|
|
2019-08-25 23:55:59 -04:00
|
|
|
#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:
|
2021-11-09 20:11:50 -08:00
|
|
|
explicit OpenClaw(Claw& claw);
|
2019-08-25 23:55:59 -04:00
|
|
|
void Initialize() override;
|
|
|
|
|
void End(bool interrupted) override;
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
Claw* m_claw;
|
|
|
|
|
};
|