Plotter code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
565 B

package setup
import (
"codeisalie/gono/pkg/comm"
"time"
)
// List ...
type List []comm.SetCMD
// Run initializes the plotter
func Run(c *comm.Comm) {
c.Send(comm.SetMachineSize, c.Cfg.MachineWidth, c.Cfg.MachineHeight)
c.Send(comm.SetMachineMmPerRev, c.Cfg.MachineMmPerRev)
c.Send(comm.SetMachineStepsPerRev, c.Cfg.MachineStepsPerRev)
c.Send(comm.SetMachineMotorSpeed, c.Cfg.MachineMotorSpeed)
c.Send(comm.SetMachineMotorAccel, c.Cfg.MachineMotorAccel)
c.Send(comm.SetMachineStepMultiplier, c.Cfg.MachineStepMultiplier)
time.Sleep(5 * time.Second)
}