public static class Sequencer.ChannelConfigPwmSpeed extends java.lang.Object implements Sequencer.ChannelConfig
PWM speed channels are channels in which a PWM signal is generated, and the pulse width controls the speed of the actuator. A good example is a DC motor. The main difference from a PWM position channel is that the position channel will go back to its initial pulse width during a stall event.
| Modifier and Type | Field and Description |
|---|---|
Sequencer.Clock |
clk
The clock rate for this channel (cannot be changed on a per-cue basis).
|
int |
initialPulseWidth
The initial pulse width (before any cue is executed), in time-base units, determined by
clk. |
int |
period
The PWM period, in time-base units, determined by
clk. |
DigitalOutput.Spec[] |
pinSpec
Specification of the output pin(s) for this channel.
|
| Constructor and Description |
|---|
Sequencer.ChannelConfigPwmSpeed(Sequencer.Clock clk,
int period,
int initialPulseWidth,
DigitalOutput.Spec... pinSpec)
Constructor.
|
public final DigitalOutput.Spec[] pinSpec
public final Sequencer.Clock clk
public final int period
clk. Valid values are
[2..65536].public final int initialPulseWidth
clk. Valid values are 0 or [2..65536]. Also used in the event of a stall.public Sequencer.ChannelConfigPwmSpeed(Sequencer.Clock clk, int period, int initialPulseWidth, DigitalOutput.Spec... pinSpec)
clk - See clk.period - See period.initialPulseWidth - See initialPulseWidth.pinSpec - See pinSpec.