LASERPOWER

NAME
SYNOPSIS
DESCRIPTION
FUNCTIONS
PINS
LICENSE

NAME

laserpower - Scales laser power output based upon velocity input power and distance to go

SYNOPSIS

loadrt laserpower [count=N|names=name1[,name2...]]

DESCRIPTION

During operation laserpower must be scaled proportionally to actual velocity vs commanded velocity.
This prevents uneven laser power when rounding tight corners.

laserpower operates in 2 modes.
Raster mode (when raster_mode = 1).
During raster mode raster_power is scaled between min_power and max_power proportionally to req_velocity and cur_velocity.

Velocity mode (when raster_mode = 0).
During velocity mode vector_power corresponds to the power level desired when reaching the next control point.
This allows vector power to be scaled along moves.

FUNCTIONS

laserpower.N (requires a floating-point thread)

PINS

laserpower.N.min-power float in

Minimum allowed power level.

laserpower.N.max-power float in

Maximum allowed power level

laserpower.N.req-velocity float in

Requested motion velocity

laserpower.N.cur-velocity float in

Current motion velocity

laserpower.N.enabled bit in

True when laser output enabled

laserpower.N.raster-mode bit in

false for vector mode, true for raster mode

laserpower.N.raster-power float in

Requested power level during raster operations

laserpower.N.vector-power float in

Requested power level during vector operations

laserpower.N.distance-to-go float in

Distance to go of current move

laserpower.N.power float out

Current power level command

laserpower.N.command-power float out

Commanded power before normalization and velocity scaling

laserpower.N.start-power float out

Power level when reqPower last changed

laserpower.N.start-distance float out

Distance amount when reqPower last changed

laserpower.N.vel-scale float out

Velocity related scaling component.

LICENSE

GPL