Options
All
  • Public
  • Public/Protected
  • All
Menu

Class StepperMotor

Hierarchy

  • StepperMotor

Implements

Index

Constructors

constructor

  • Returns StepperMotor

Properties

common

common: any

currentStep

currentStep: number = 0

frequency

frequency: number = 100

ios

ios: PeripheralIO[] = []

keys

keys: string[]

milliMeterStepCount

milliMeterStepCount: number = 1

params

params: any

requiredKeys

requiredKeys: string[]

rotationStepCount

rotationStepCount: number = 100

Optional type

type: undefined | string

Methods

_getStepInstructions

  • _getStepInstructions(): number[][]
  • Returns number[][]

currentAngle

  • currentAngle(): number
  • Returns number

currentDistance

  • currentDistance(): number
  • Returns number

currentRotation

  • currentRotation(): number
  • Returns number

freeWait

  • freeWait(): Promise<void>
  • Returns Promise<void>

holdWait

  • holdWait(): Promise<void>
  • Returns Promise<void>

moveToWait

  • moveToWait(destination: number): Promise<void>
  • Parameters

    • destination: number

    Returns Promise<void>

moveWait

  • moveWait(distance: number): Promise<void>
  • Parameters

    • distance: number

    Returns Promise<void>

rotateToWait

  • rotateToWait(angle: number): Promise<void>
  • Parameters

    • angle: number

    Returns Promise<void>

rotateWait

  • rotateWait(rotation: number): Promise<void>
  • Parameters

    • rotation: number

    Returns Promise<void>

speed

  • speed(step_per_sec: number): void
  • Parameters

    • step_per_sec: number

    Returns void

stepToWait

  • stepToWait(destination: number): Promise<void>
  • Parameters

    • destination: number

    Returns Promise<void>

stepType

  • Parameters

    Returns void

stepWait

  • stepWait(step_count: number): Promise<void>
  • Parameters

    • step_count: number

    Returns Promise<void>

wired

  • wired(obniz: Obniz): void
  • Parameters

    Returns void

Static info

  • Returns ObnizPartsInfo

Generated using TypeDoc