Documentation
¶
Index ¶
- Constants
- type CoordinateSystem
- func (c *CoordinateSystem) ApplyCoordinateSystem(x, y, z float64) (float64, float64, float64)
- func (c *CoordinateSystem) CancelOverride()
- func (c *CoordinateSystem) DisableOffset()
- func (c *CoordinateSystem) EnableOffset()
- func (c *CoordinateSystem) EraseOffset()
- func (c *CoordinateSystem) GetCoordinateSystem() vector.Vector
- func (c *CoordinateSystem) OffsetActive() bool
- func (c *CoordinateSystem) Override()
- func (c *CoordinateSystem) OverrideActive() bool
- func (c *CoordinateSystem) SelectCoordinateSystem(s int)
- func (c *CoordinateSystem) SetCoordinateSystem(x, y, z float64, s int)
- func (c *CoordinateSystem) SetOffset(x, y, z float64)
- type Machine
- func (vm *Machine) Dump()
- func (m *Machine) ETA() time.Duration
- func (vm *Machine) EnforceSpindle(enabled, clockwise bool, speed float64)
- func (vm *Machine) FeedrateMultiplier(feedMultiplier float64)
- func (vm *Machine) FindSafetyHeight() float64
- func (vm *Machine) FlipXY()
- func (vm *Machine) Info() (minx, miny, minz, maxx, maxy, maxz float64, feedrates []float64)
- func (vm *Machine) Init()
- func (vm *Machine) LimitFeedrate(feed float64)
- func (vm *Machine) MoveMultiplier(moveMultiplier float64)
- func (vm *Machine) Process(doc *gcode.Document) (err error)
- func (vm *Machine) Return(disableSpindle, disableCoolant bool)
- func (vm *Machine) SetSafetyHeight(height float64) error
- type Position
- type State
Constants ¶
View Source
const ( MoveModeNone = iota MoveModeRapid = iota MoveModeLinear = iota MoveModeCWArc = iota MoveModeCCWArc = iota MoveModeDwell = iota )
Constants for move modes
View Source
const ( PlaneXY = iota PlaneXZ = iota PlaneYZ = iota )
Constants for plane selection
View Source
const ( FeedModeUnitsMin = iota FeedModeUnitsRev = iota FeedModeInvTime = iota )
Constants for feedrate mode
View Source
const ( CutCompModeNone = iota CutCompModeOuter = iota CutCompModeInner = iota )
Constants for cutter compensation mode
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CoordinateSystem ¶
type CoordinateSystem struct {
// contains filtered or unexported fields
}
func (*CoordinateSystem) ApplyCoordinateSystem ¶
func (c *CoordinateSystem) ApplyCoordinateSystem(x, y, z float64) (float64, float64, float64)
func (*CoordinateSystem) CancelOverride ¶
func (c *CoordinateSystem) CancelOverride()
func (*CoordinateSystem) DisableOffset ¶
func (c *CoordinateSystem) DisableOffset()
func (*CoordinateSystem) EnableOffset ¶
func (c *CoordinateSystem) EnableOffset()
func (*CoordinateSystem) EraseOffset ¶
func (c *CoordinateSystem) EraseOffset()
func (*CoordinateSystem) GetCoordinateSystem ¶
func (c *CoordinateSystem) GetCoordinateSystem() vector.Vector
func (*CoordinateSystem) OffsetActive ¶
func (c *CoordinateSystem) OffsetActive() bool
func (*CoordinateSystem) Override ¶
func (c *CoordinateSystem) Override()
func (*CoordinateSystem) OverrideActive ¶
func (c *CoordinateSystem) OverrideActive() bool
func (*CoordinateSystem) SelectCoordinateSystem ¶
func (c *CoordinateSystem) SelectCoordinateSystem(s int)
func (*CoordinateSystem) SetCoordinateSystem ¶
func (c *CoordinateSystem) SetCoordinateSystem(x, y, z float64, s int)
func (*CoordinateSystem) SetOffset ¶
func (c *CoordinateSystem) SetOffset(x, y, z float64)
type Machine ¶
type Machine struct { State State Positions []Position // Regular states Completed bool Imperial bool AbsoluteMove bool AbsoluteArc bool MovePlane int // Coordinate systems CoordinateSystem CoordinateSystem // Positions StoredPos1 vector.Vector StoredPos2 vector.Vector // Arc settings MaxArcDeviation float64 MinArcLineLength float64 // Options IgnoreBlockDelete bool AllowRemainingWords bool }
Machine state and settings
func (*Machine) EnforceSpindle ¶
Enforce spindle mode
func (*Machine) FeedrateMultiplier ¶
Increase feedrate
func (*Machine) FindSafetyHeight ¶
Detect the highest Z position
func (*Machine) MoveMultiplier ¶
Multiply move distances - This makes no sense - Dangerous.
func (*Machine) Return ¶
Ensure return to X0 Y0 Z0. Simply adds a what is necessary to move back to X0 Y0 Z0.
func (*Machine) SetSafetyHeight ¶
Set safety-height. Scans for the highest position on the Y axis, and afterwards replaces all instances of this position with the requested height.
Click to show internal directories.
Click to hide internal directories.