#linuxcnc-devel Logs

Apr 21 2019

#linuxcnc-devel Calendar

02:32 PM rene_dev_: Pcw I recall there is a mesa solution for laser rastering
03:02 PM pcw_home: Yes, the DPainter module but no driver/sensible scheme for feeding data (embedded in Gcode? separate stream? etc)
03:04 PM pcw_home: Basically a stepgen clone that clocks out data (PWM or bitstream) from a FIFO
03:05 PM pcw_home: intended to be position locked to an axis command,encoder,or calculated surface length for arbitrary shape painting
03:15 PM rene_dev_: is that included with the hostmot source?
03:15 PM pcw_home: yes
03:15 PM rene_dev_: I could write a driver for it, if no one else is up to it.
03:16 PM rene_dev_: any documentation? :D
03:16 PM pcw_home: what do you do about the data stream?
03:17 PM rene_dev_: that would come straight from a image, as a 2d grayscale.
03:17 PM rene_dev_: and I guess that needs to be fed into the fifo?
03:17 PM pcw_home: yeah no hal FIFOs on LinuxCNC
03:18 PM pcw_home: I guess Machinekit has ring buffers
03:18 PM rene_dev_: do you have a register map?
03:18 PM rene_dev_: could not find it here
03:18 PM rene_dev_: https://github.com/LinuxCNC/hostmot2-firmware/blob/master/src/regmap
03:19 PM pcw_home: probably only in recent source from Mesa
03:26 PM pcw_home: http://freeby.mesanet.com/regmap
03:32 PM rene_dev_: dpainter count is sampled by host read
03:32 PM rene_dev_: how do I clock it?
03:34 PM pcw_home: the clock is the same as a stepgen
03:35 PM pcw_home: feedback is the same also (16 bits of clock and 16 bit of fractional clock)
03:36 PM rene_dev_: ok, so it just shifts at a fixed data rate?
03:37 PM pcw_home: like a stepgen (changeble every servo thread)
03:37 PM pcw_home: 32 bit rate register
03:41 PM pcw_home: imagine a step/dir driven system with N pixels/step, if you fed the stepgen and dpainter from the same position stream you would have 1 pixel clocked out per step
03:43 PM pcw_home: but of course you can scale the position stream to have any desired ratio (or just run a a fixed rate if that's what you want)
03:52 PM pcw_home: bbl supper
03:59 PM rene_dev_: pcw_home https://github.com/bjj/2x_laser