コード例 #1
0
ファイル: DoubleSolenoid.cpp プロジェクト: HiceS/synthesis
/**
 * Constructor.
 * 
 * @param forwardChannel The forward channel on the module to control.
 * @param reverseChannel The reverse channel on the module to control.
 */
DoubleSolenoid::DoubleSolenoid(uint32_t forwardChannel, uint32_t reverseChannel)
	: SolenoidBase (GetDefaultSolenoidModule())
	, m_forwardChannel (forwardChannel)
	, m_reverseChannel (reverseChannel)
{
	InitSolenoid();
}
コード例 #2
0
/**
 * Constructor.
 *
 * @param forwardChannel The forward channel on the module to control.
 * @param reverseChannel The reverse channel on the module to control.
 */
DoubleSolenoid::DoubleSolenoid(UINT32 forwardChannel, UINT32 reverseChannel)
    : SolenoidBase (GetDefaultSolenoidModule())
    , m_forwardChannel (forwardChannel)
    , m_reverseChannel (reverseChannel)
{
    InitSolenoid();
}
コード例 #3
0
ファイル: Solenoid.cpp プロジェクト: FRC2539/wpilib
/**
 * Constructor.
 * 
 * @param channel The channel on the solenoid module to control (1..8).
 */
Solenoid::Solenoid(UINT32 channel)
	: SolenoidBase (GetDefaultSolenoidModule())
	, m_channel (channel)
{
	InitSolenoid();
}
コード例 #4
0
/**
 * Constructor using the default PCM ID (0).
 *
 * @param channel The channel on the PCM to control (0..7).
 */
Solenoid::Solenoid(uint32_t channel)
    : Solenoid(GetDefaultSolenoidModule(), channel) {}
コード例 #5
0
ファイル: Solenoid.cpp プロジェクト: FRC980/FRC-Team-980
/**
 * Constructor.
 * 
 * @param channel The channel on the module to control.
 */
Solenoid::Solenoid(UINT32 channel)
	: m_chassisSlot (GetDefaultSolenoidModule())
	, m_channel (channel)
{
	InitSolenoid();
}
コード例 #6
0
ファイル: Solenoid.cpp プロジェクト: frc1334/WPILib
/**
 * Constructor.
 * 
 * @param channel The channel on the solenoid module to control (1..8).
 */
Solenoid::Solenoid(uint32_t channel)
	: SolenoidBase (GetDefaultSolenoidModule())
	, m_channel (channel)
{
	InitSolenoid();
}