62 virtual bool Get()
const;
111 std::shared_ptr<PneumaticsBase> m_module;
and restrictions which apply to each piece of software is included later in this file and or inside of the individual applicable source files The disclaimer of warranty in the WPILib license above applies to all code in and nothing in any of the other licenses gives permission to use the names of FIRST nor the names of the WPILib contributors to endorse or promote products derived from this software The following pieces of software have additional or alternate and or Google Inc All rights reserved Redistribution and use in source and binary with or without are permitted provided that the following conditions are this list of conditions and the following disclaimer *Redistributions in binary form must reproduce the above copyright this list of conditions and the following disclaimer in the documentation and or other materials provided with the distribution *Neither the name of Google Inc nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS AS IS AND ANY EXPRESS OR IMPLIED BUT NOT LIMITED THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY OR CONSEQUENTIAL WHETHER IN STRICT OR EVEN IF ADVISED OF THE POSSIBILITY OF SUCH January AND DISTRIBUTION Definitions License shall mean the terms and conditions for and distribution as defined by Sections through of this document Licensor shall mean the copyright owner or entity authorized by the copyright owner that is granting the License Legal Entity shall mean the union of the acting entity and all other entities that control are controlled by or are under common control with that entity For the purposes of this definition control direct or to cause the direction or management of such whether by contract or including but not limited to software source documentation and configuration files Object form shall mean any form resulting from mechanical transformation or translation of a Source including but not limited to compiled object generated and conversions to other media types Work shall mean the work of whether in Source or Object made available under the as indicated by a copyright notice that is included in or attached to the whether in Source or Object that is based on(or derived from) the Work and for which the editorial revisions
Solenoid class for running high voltage Digital Output on a pneumatics module.
Definition: Solenoid.h:26
void Toggle()
Toggle the value of the solenoid.
void SetPulseDuration(units::second_t duration)
Set the pulse duration in the PCM.
Solenoid(Solenoid &&)=default
Solenoid(PneumaticsModuleType moduleType, int channel)
Constructs a solenoid for a default module and specified type.
void StartPulse()
Trigger the PCM to generate a pulse of the duration set in setPulseDuration.
bool IsDisabled() const
Check if solenoid is Disabled.
void InitSendable(wpi::SendableBuilder &builder) override
Initializes this Sendable object.
int GetChannel() const
Get the channel this solenoid is connected to.
virtual void Set(bool on)
Set the value of a solenoid.
virtual bool Get() const
Read the current value of the solenoid.
Solenoid(int module, PneumaticsModuleType moduleType, int channel)
Constructs a solenoid for a specified module and type.
Solenoid & operator=(Solenoid &&)=default
Definition: SendableBuilder.h:18
A helper class for use with objects that add themselves to SendableRegistry.
Definition: SendableHelper.h:19
Interface for Sendable objects.
Definition: Sendable.h:16
Definition: AprilTagFieldLayout.h:22
PneumaticsModuleType
Definition: PneumaticsModuleType.h:8