Commit graph

20 commits

Author SHA1 Message Date
Dewey Garrett
fd9fecdb82 scripts/moveoff_gui,hal-histogram: add note
regarding obtaining value for HALLIB_DIR for applications
not using linuxcnc script

Signed-off-by: Dewey Garrett <dgarrett@panix.com>
2015-08-01 11:30:03 -07:00
Dewey Garrett
e082ca2f98 moveoff_gui: include all cmdline opts in manpage
to make consistent with --help option
Signed-off-by: Dewey Garrett <dgarrett@panix.com>
2015-07-08 13:27:48 -07:00
Dewey Garrett
25bc3ca800 moveoff_gui: provide -no_display option
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>
2015-02-28 21:05:38 -07:00
Dewey Garrett
15087c4ba4 moveoff: honor changes in backtrack-enable
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>
2015-02-28 21:05:15 -07:00
Dewey Garrett
f36da6a717 hal_procs_lib.tcl: no error if thread not found
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>
2015-02-28 12:37:17 -07:00
Dewey Garrett
ff2c1b3f7f moveoff_gui: verify non-connect of some pins
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>
2015-02-26 09:22:00 -07:00
Dewey Garrett
bcfccaf5e8 hal_procs_lib.tcl: consolidate common procs
Signed-off-by: Dewey Garrett <dgarrett@panix.com>
2015-02-22 07:16:25 -07:00
Dewey Garrett
b8ab24273a moveoff: fixed-offset, single-axis retract demo
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>
2015-02-21 20:50:39 -07:00
Dewey Garrett
a25292764d moveoff_gui: remove need for delay on startup
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>
2015-02-02 13:26:55 -07:00
Dewey Garrett
e44ab7719e moveoff_gui improve proc bitpin_exists
test for unique instance of pattern arg
Signed-off-by: Dewey Garrett <dgarrett@panix.com>
2015-02-02 13:26:55 -07:00
Dewey Garrett
7b84358334 moveoff: cleanup messages, boolean tests
moveoff_gui
  improve error msgs for verify_context() checks
  adjust font on cancel messages
  simplify boolean tests
  shorten titletxt to fit smaller size widget

Signed-off-by: Dewey Garrett <dgarrett@panix.com>
2014-12-21 12:49:57 -07:00
Dewey Garrett
3699800e84 moveoff.comp: warning pin, gave_msg improve
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>
2014-12-21 12:49:47 -07:00
Dewey Garrett
91247e5e0b moveoff_gui: new manpage
and remove redundant text from the script
also: brief manpage for sim_pin

Signed-off-by: Dewey Garrett <dgarrett@panix.com>
2014-12-18 17:22:59 -07:00
Dewey Garrett
bf2820c4d7 moveoff: support -mode always, fixes from testing
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>
2014-12-18 16:29:30 -07:00
Dewey Garrett
8b44ccfa6a hallib: support for system-wide halfiles
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>
2014-12-16 19:33:51 -07:00
Dewey Garrett
6d55eab18a moveoff_gui: correct text errors for is connected
with regard to move-enable pin at startup

Signed-off-by: Dewey Garrett <dgarrett@panix.com>
2014-12-11 11:09:52 -07:00
Dewey Garrett
f05e53e1ef moveoff_gui: --help: show opts defaults better
for options with no associated values

Signed-off-by: Dewey Garrett <dgarrett@panix.com>
2014-12-11 09:10:43 -07:00
Dewey Garrett
3ff86cd72b moveoff: update for manpage and touchscreen use
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>
2014-12-11 08:34:29 -07:00
Dewey Garrett
62b2ab9af8 moveoff_gui: provisions for non-axis ui
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>
2014-12-10 09:41:42 -07:00
Dewey Garrett
6b5437dee5 moveoff: Hal-only offsetting
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>
2014-12-09 21:45:31 -07:00