pncconf -fix double POSITION_OFFSET/FEEBACk INI entry

We don't need it twice. Thanks Seb for bug report

Signed-off-by: Chris Morley <chrisinnanaimo@hotmail.com>
pncconf -lower default watchdog limit

from 10ms to 5ms as recomended by Seb.

Signed-off-by: Chris Morley <chrisinnanaimo@hotmail.com>
Merge branch '2.6' into 2.7

Conflicts:
	src/emc/usr_intf/pncconf/pncconf.py
pncconf -lower watchdog limit

from 10ms to 5 ms
As recommended from Seb

Signed-off-by: Chris Morley <chrisinnanaimo@hotmail.com>
pncconf -fix double POSITION_FEEDBACK/OFFSET INI entry

only need it once.
thanks Seb fo4 the bug report.

Signed-off-by: Chris Morley <chrisinnanaimo@hotmail.com>
hallib: new: sim_lib, basic_sim

sim_lib.tcl: haltcl library procs
basic_sim.tcl: basic sim configuration using sim_lib

Signed-off-by: Dewey Garrett <dgarrett@panix.com>
moveoff: update sim demo configs to use hallib

note: declining usage for configs used for development (moveoff_demo*)

also:
removeshort.hal: use mux as sample-hold on motor-pos-fb

Signed-off-by: Dewey Garrett <dgarrett@panix.com>
linuxcnc.in,haltcl.in pass args to haltcl file

linuxcnc.in: a haltcl file can make use of args

haltcl.in: set argv [lindex $argv 1 end] was always wrong,
           lrange was intent

Signed-off-by: Dewey Garrett <dgarrett@panix.com>
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>
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>
docs: document the surprising encoder num_chan=0 behavior

It means "use the default, 3".

Signed-off-by: Sebastian Kuzminsky <seb@highlab.com>
tests: test names=(1 value) of comp-generated components

This tests one "names=" argument.  This works.

Signed-off-by: Sebastian Kuzminsky <seb@highlab.com>
tests: test names=(17 values) of comp-generated components

This should be rejected (16 names is the max), and it is.  The component
fails to load.

Signed-off-by: Sebastian Kuzminsky <seb@highlab.com>
tests: test some valid counts= of comp-generated components

There is no upper limit on counts= like there is on names=.  This tests
counts=1, =16, and =17, they're all accepted.

Signed-off-by: Sebastian Kuzminsky <seb@highlab.com>
tests: test names=(16 values) of comp-generated components

This currently fails because of a bug in comp.

Signed-off-by: Sebastian Kuzminsky <seb@highlab.com>
comp: don't overrun the names[] array

Before this commit, if a comp-generated component was given the max
number of names= arguments, it would happily walk past the end of the
names[] array until it came to a NULL.

In kernels since 2.6, module_param_array() sets the number of entries
actually provided, we should probably use that.  Needs SIM support
though.

Signed-off-by: Sebastian Kuzminsky <seb@highlab.com>
tests: test names=(empty string) of comp-generated components

This is currently accepted, and results in a single component with no
name.  HAL objects like pins and functions get names like ".pin-name"
and ".func", which seems kind of bogus.

This is probably a bug, but we shouldn't change it in 2.6.  We should
probably change 2.7 to reject this.

Signed-off-by: Sebastian Kuzminsky <seb@highlab.com>
sim_lib.tcl: use or2

deb build has no or8 (but my rip does)
Signed-off-by: Dewey Garrett <dgarrett@panix.com>
interp: use the same arc radius tolerance in inch and metric

Signed-off-by: Sebastian Kuzminsky <seb@highlab.com>
docs: fix a section level typo in Getting Started

Signed-off-by: Sebastian Kuzminsky <seb@highlab.com>