Exemplo n.º 1
0
 public TwoPhaseMicrosteppingSequencer(HBridge phase1Bridge, HBridge phase2Bridge, int stepsPerStepCycle)
 {
     _phase1     = phase1Bridge;
     _phase2     = phase2Bridge;
     _maxIndex   = stepsPerStepCycle - 1;
     _phaseIndex = 0;
     ConfigureStepTables(stepsPerStepCycle);
 }
Exemplo n.º 2
0
 public IStepSequencer GetMicrosteppingStepperMotor(int microsteps, HBridge phase1, HBridge phase2)
 {
     return(new TwoPhaseMicrosteppingSequencer(phase1, phase2, microsteps));
 }
Exemplo n.º 3
0
 public DcMotor(HBridge motorWinding, int accelerationResolutionInMilliseconds = 100)
 {
     Acceleration  = 0.2;
     _motorWinding = motorWinding;
     _accelerationResolutionInMilliseconds = accelerationResolutionInMilliseconds;
 }