Class: Step

Basic.Coord.Step(fix, mob)

Representation of an unity vector in step motor steps.

Constructor

new Step(fix, mob)

Creates a step motor steps representation of a unity vector.
Parameters:
Name Type Default Description
fix number 0 the fixed motor step (0 to this.maxSteps) coordinate.
mob number 0 the mobile motor step (0 to this.maxSteps) coordinate.
Source:

Members

fix

Set this.fix
Source:

fix

Get this.fix
Source:

mob

Set this.mob
Source:

mob

Get this.mob
Source:

Methods

clone() → {Step}

Make a copy of this vector.
Source:
Returns:
copy of this vector.
Type
Step

correctSteps()

Corrects coordinates to their boundary values.
Source:

fixFromRad(rad)

Set fix coordinate from angle in radians
Parameters:
Name Type Description
rad number angle in radians that will set the fix coordinate
Source:

fixToRad() → {number}

Returns fix coordinate in radians.
Source:
Returns:
this.fix in radians
Type
number

mobFromRad(rad)

Set mob coordinate from angle in radians
Parameters:
Name Type Description
rad number angle in radians that will set the mob coordinate
Source:

mobToRad() → {number}

Returns mob coordinate in radians.
Source:
Returns:
this.mob in radians
Type
number