For use when both external controls and displays are
provided in demonstration configs.
When custom external displays and controls are required,
use the moveoff component with a custom gui.
Signed-off-by: Dewey Garrett <dgarrett@panix.com>
1) record waypoints always
2) allow backtrack-enable pin to change from state when
offset enabling stargs
3) provide checkbutton in moveoff_gui (if no. of axes > 1)
Note: this new behavior also enforces waypoint limit
even when backtrack-enabled not used
Signed-off-by: Dewey Garrett <dgarrett@panix.com>
a thread named 'motion-controller' is not expected to be there for all
users, viz. hal-only apps like latency-histogram
Signed-off-by: Dewey Garrett <dgarrett@panix.com>
when providing controls (when move-enable not connected)
also:
add to comments in moveoff_external.hal
set external_backtrack_en==0 for fixed offset
Signed-off-by: Dewey Garrett <dgarrett@panix.com>
Uses a single external_enable toggle switch
(simulated with sim_pin for this demo)
Also: support this usecase with availability of new option:
-no_cancel_autoresume
Signed-off-by: Dewey Garrett <dgarrett@panix.com>
The original one-time check for a *.resume-inhibit pin
necessitated a startup delay in order for a gui (axisui)
to create the pin.
This commit checks for the pin dynamically to remove need
for using an ini item for [APPLICATIONS]DELAY=
Signed-off-by: Dewey Garrett <dgarrett@panix.com>
improve gave_msg handling
add warning pin
for hal pin notice of:
apply-offsets deasserted while offsets-applied
occurs if program stopped or resumed while offsets active
hookup_moveoff.tcl
typo
moveoff.halshow
show resume pins too
Signed-off-by: Dewey Garrett <dgarrett@panix.com>
moveoff.comp
rename is-on pin to power-on and clear offsets on removal
remove redundant calls to offset_removed()
issue warning message in any state
remove unused vars
revise some var names for clarity
work on man page
moveoff_gui
connect mv.power-on to motion.motion-enabled
add -mode onpause|always option
show status in white if motion.motion-enabled false (always mode)
if timing out autoresume, check if other actor resumed
show mode in window title
revise some var names for clarity
disallow window delete
is_connected() return signame too
connect is-paused to existing sig if already connected
moveoff_demo[45]a.[ini|txt]
demo configs for -mode always
hookup_moveoff.tcl
if [AXIS_n]OFFSET_MAXIMUM_VELOCITY (and like items) do not
exist, try [AXIS_n]MAXIMUM_VELCITY (and like items)
else use component defaults
honor ini entry for BACKTRACK_ENABLE
moveoff.txt
update for -mode option
Signed-off-by: Dewey Garrett <dgarrett@panix.com>
1) HALLIB_DIR: new directory for system-wide hal files (*.hal,*.tcl and
supporting files).
Locations:
RIP: HALLIB = lib/hallib/
DEB: HALLIB = /usr/share/linuxcnc/hallib/
2) HALLIB_PATH: search path for locating halfiles:
HALLIB_PATH = .:HALLIB_DIR (e.g., ini directory then system library)
3) LIB: prefix to explicitly specify a system library halfile (with
no search of the ini file directory)
[HAL]
...
HALFILE = LIB:filename.[hal|tcl]
...
This patch addresses a general issue of the multiple copies (or links) of
halfiles throughout the config tree and makes it simple to explicitly specify a
library halfile so that a user does not need to copy these files when modifying
a configuration. For example, one can instruct a user with:
'Include the line HALFILE = LIB:xhc-hb04.tcl in the [HAL] stanza of
your ini file'
Signed-off-by: Dewey Garrett <dgarrett@panix.com>
moveoff_gui
use button,increment,width for 'zero' button too (touchscreen use)
for center option, compute postion after full size is known
pyngcgui_touchy_moveoff.ini
use -noentry (for touchscreen)
moveoff.comp
guard against epsilon pin == 0 by enforcing a minimum
improve man page, use bolding markups
Signed-off-by: Dewey Garrett <dgarrett@panix.com>
use soft link for hookup_moveoff.tcl to share with others
catch error if no *.resume-inhibit pin exists
Signed-off-by: Dewey Garrett <dgarrett@panix.com>
src/hal/components/moveoff.comp - Hal offset component for 9 axes
Plus:
scripts/moveoff_gui - gui for managing the moveoff component
configs/sim/axis/moveoff/* - demonstration sim configs
The sim configs include:
hookup_moveoff.tcl - script to automatically install a moveoff
component into an existing configuration
Documentation:
man moveoff (halcompile generated)
moveoff_gui --help
hookup_move.tcl (notes at top of file)
Signed-off-by: Dewey Garrett <dgarrett@panix.com>