WPILibC++ 2025.0.0-alpha-1-9-ga2beb75
DoubleSolenoidSim.h
Go to the documentation of this file.
1// Copyright (c) FIRST and other WPILib contributors.
2// Open Source Software; you can modify and/or share it under the terms of
3// the WPILib BSD license file in the root directory of this project.
4
5#pragma once
6
7#include <memory>
8
12
13namespace frc::sim {
14
16 public:
17 DoubleSolenoidSim(std::shared_ptr<PneumaticsBaseSim> moduleSim, int fwd,
18 int rev);
19 DoubleSolenoidSim(int module, PneumaticsModuleType type, int fwd, int rev);
21
24
25 std::shared_ptr<PneumaticsBaseSim> GetModuleSim() const;
26
27 private:
28 std::shared_ptr<PneumaticsBaseSim> m_module;
29 int m_fwd;
30 int m_rev;
31};
32
33} // namespace frc::sim
Value
Possible values for a DoubleSolenoid.
Definition: DoubleSolenoid.h:31
Definition: DoubleSolenoidSim.h:15
DoubleSolenoidSim(int module, PneumaticsModuleType type, int fwd, int rev)
DoubleSolenoidSim(PneumaticsModuleType type, int fwd, int rev)
std::shared_ptr< PneumaticsBaseSim > GetModuleSim() const
DoubleSolenoid::Value Get() const
void Set(DoubleSolenoid::Value output)
DoubleSolenoidSim(std::shared_ptr< PneumaticsBaseSim > moduleSim, int fwd, int rev)
type
Definition: core.h:573
Definition: ADXL345Sim.h:14
PneumaticsModuleType
Pneumatics module type.
Definition: PneumaticsModuleType.h:11