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