mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[examples] Add unit testing infrastructure (#4646)
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
// 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 <frc/DoubleSolenoid.h>
|
||||
#include <frc/motorcontrol/PWMSparkMax.h>
|
||||
|
||||
#include "Constants.h"
|
||||
|
||||
class Intake {
|
||||
public:
|
||||
void Deploy();
|
||||
void Retract();
|
||||
void Activate(double speed);
|
||||
bool IsDeployed() const;
|
||||
|
||||
private:
|
||||
frc::PWMSparkMax m_motor{IntakeConstants::kMotorPort};
|
||||
frc::DoubleSolenoid m_piston{frc::PneumaticsModuleType::CTREPCM,
|
||||
IntakeConstants::kPistonFwdChannel,
|
||||
IntakeConstants::kPistonRevChannel};
|
||||
};
|
||||
Reference in New Issue
Block a user