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.
|
2019-08-25 23:55:59 -04:00
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2025-11-07 19:56:21 -05:00
|
|
|
#include "Constants.hpp"
|
2025-11-08 16:58:51 -08:00
|
|
|
#include "wpi/commands2/SubsystemBase.hpp"
|
|
|
|
|
#include "wpi/hardware/pneumatic/DoubleSolenoid.hpp"
|
|
|
|
|
#include "wpi/hardware/pneumatic/PneumaticsControlModule.hpp"
|
2019-08-25 23:55:59 -04:00
|
|
|
|
2025-11-07 20:00:05 -05:00
|
|
|
class HatchSubsystem : public wpi::cmd::SubsystemBase {
|
2019-08-25 23:55:59 -04:00
|
|
|
public:
|
|
|
|
|
HatchSubsystem();
|
|
|
|
|
|
|
|
|
|
// Subsystem methods go here.
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Grabs the hatch.
|
|
|
|
|
*/
|
|
|
|
|
void GrabHatch();
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Releases the hatch.
|
|
|
|
|
*/
|
|
|
|
|
void ReleaseHatch();
|
|
|
|
|
|
2025-11-07 20:00:05 -05:00
|
|
|
void InitSendable(wpi::util::SendableBuilder& builder) override;
|
2023-02-01 09:44:18 +02:00
|
|
|
|
2019-08-25 23:55:59 -04:00
|
|
|
private:
|
|
|
|
|
// Components (e.g. motor controllers and sensors) should generally be
|
|
|
|
|
// declared private and exposed only through public methods.
|
2026-04-25 14:32:08 -04:00
|
|
|
wpi::DoubleSolenoid hatchSolenoid;
|
2019-08-25 23:55:59 -04:00
|
|
|
};
|