WPILibC++ 2023.4.3-108-ge5452e3
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
Definition: DoubleSolenoid.h:28
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:575
Definition: BatterySim.h:14
PneumaticsModuleType
Definition: PneumaticsModuleType.h:8