mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-26 01:51:41 +00:00
[hal] Add a unified PCM object (#3331)
This commit is contained in:
28
wpilibc/src/main/native/include/frc/PneumaticsBase.h
Normal file
28
wpilibc/src/main/native/include/frc/PneumaticsBase.h
Normal file
@@ -0,0 +1,28 @@
|
||||
// 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 <units/time.h>
|
||||
|
||||
namespace frc {
|
||||
class PneumaticsBase {
|
||||
public:
|
||||
virtual ~PneumaticsBase() = default;
|
||||
|
||||
virtual void SetSolenoids(int mask, int values) = 0;
|
||||
|
||||
virtual int GetSolenoids() const = 0;
|
||||
|
||||
virtual int GetModuleNumber() const = 0;
|
||||
|
||||
virtual int GetSolenoidDisabledList() const = 0;
|
||||
|
||||
virtual void FireOneShot(int index) = 0;
|
||||
|
||||
virtual void SetOneShotDuration(int index, units::second_t duration) = 0;
|
||||
|
||||
virtual bool CheckSolenoidChannel(int channel) const = 0;
|
||||
};
|
||||
} // namespace frc
|
||||
Reference in New Issue
Block a user