Class: CommPath

Basic.Comm.CommPath(Path, Calib)

Parsed path construction for communication to Horus ESP32 server.

Constructor

new CommPath(Path, Calib)

Creates a parsed path to send to the ESP32 server.
Parameters:
Name Type Description
Path Path Path to be parsed.
Calib Calibration calibration used to transform celestial to step coordinates
Source:

Members

_decBase :Array.<number>

Number of bits of the base used to communicate the path segments.
Type:
  • Array.<number>
Source:

_encBase :Array.<number>

Number of bits of the base used to represent the path segments, respectively for: laser state, step delay, fix step, mob step.
Type:
  • Array.<number>
Source:

_parsedPath :Array.<number>

Parsed path obtained from this._path.
Type:
  • Array.<number>
Source:

_path :Path

Type:
  • Path
Source:

calib :Calibration

Type:
  • Calibration
Source:

clipped :boolean

True if path clipped due to be below horizon.
Type:
  • boolean
Source:

decBase

Set decBase.
Source:

decBase

Get decBase.
Source:

encBase

Set encBase.
Source:

encBase

Get encBase.
Source:

parsedPath

Get parsedPath.
Source:

path

Set path.
Source:

path

Get path.
Source:

size

Get this path size
Source:

Methods

composePath()

Method for parsing this._path.
Source:

isAboveHorizon(Step) → {boolean}

Checks if the laser will point above the horizon for safe operation.
Parameters:
Name Type Description
Step Step step to be checked if is above horizon.
Source:
Returns:
true if above horizon, false otherwise.
Type
boolean

parseSegment(Segment) → {Array.<number>}

Parses a segment to be added to a parsed path.
Parameters:
Name Type Description
Segment Segment Segment to be parsed.
Source:
Returns:
Array with decBase size representing the parsed segment.
Type
Array.<number>