datapainter
- PCW
-
- Offline
- Moderator
-
Less
More
- Posts: 18541
- Thank you received: 5090
19 Feb 2023 22:21 - 19 Feb 2023 22:22 #264834
by PCW
Replied by PCW on topic datapainter
IMHO the driver should use the new FIFO hal type for the data path so its just
a standard driver that presents hal pins to LinuxCNC.
Parts of the driver are much like a velocity mode stepgen except instead or outputting steps
it is outputting a data stream (either 1 bit or PWM) synced (phase locked) to position.
This position could br a linear axis for rastering or a calculated path length for drawing
on complex surfaces.
There are some tricky bits involving start/stop position synchronization
due to the fixed point limited range hardware breakpoints and floating
point position comparisons
a standard driver that presents hal pins to LinuxCNC.
Parts of the driver are much like a velocity mode stepgen except instead or outputting steps
it is outputting a data stream (either 1 bit or PWM) synced (phase locked) to position.
This position could br a linear axis for rastering or a calculated path length for drawing
on complex surfaces.
There are some tricky bits involving start/stop position synchronization
due to the fixed point limited range hardware breakpoints and floating
point position comparisons
Last edit: 19 Feb 2023 22:22 by PCW. Reason: format
Please Log in or Create an account to join the conversation.
- andypugh
-
- Offline
- Moderator
-
Less
More
- Posts: 23320
- Thank you received: 4946
21 Feb 2023 12:26 #264950
by andypugh
Replied by andypugh on topic datapainter
The starting point would be to expand the Hosmot2 driver function recognition. As an example see this commit that added control for the outmux module
github.com/LinuxCNC/linuxcnc/commit/dd3f...39e8e335d63b8ee918ce
(Though it seems that the DPAINTER GTAG is already recognised but not handled)
github.com/LinuxCNC/linuxcnc/commit/dd3f...39e8e335d63b8ee918ce
(Though it seems that the DPAINTER GTAG is already recognised but not handled)
Please Log in or Create an account to join the conversation.
- andypugh
-
- Offline
- Moderator
-
Less
More
- Posts: 23320
- Thank you received: 4946
21 Feb 2023 12:43 #264951
by andypugh
The hard part is working out how to feed the bitmap data into it.
Important info can be found in the regmap file (attached) which is included in the Hostmot2 firmware downloads from Mesa.
Replied by andypugh on topic datapainter
A new handler file (datapainter.c?) would need to be written following the established pattern of the other drivers (mesa_hostmot2/stepgen.c for example)The starting point would be to expand the Hosmot2 driver function recognition. As an example see this commit that added control for the outmux module
github.com/LinuxCNC/linuxcnc/commit/dd3f...39e8e335d63b8ee918ce
(Though it seems that the DPAINTER GTAG is already recognised but not handled)
The hard part is working out how to feed the bitmap data into it.
Important info can be found in the regmap file (attached) which is included in the Hostmot2 firmware downloads from Mesa.
Please Log in or Create an account to join the conversation.
Moderators: PCW, jmelson
Time to create page: 0.073 seconds