Commit graph

17389 commits

Author SHA1 Message Date
Jeff Epler
85384d94de uspace: allow calculated parameter array sizes
In the original formulation, a use like
  RTAPI_MP_ARRAY_INT(arr, 3*FOO, "array of three times foo items");
gave a weird error on uspace only when arr= was actually
specified on the loadrt commandline.  This is because the 'num'
value was communited to rtapi_app as a string rather than an
integer, so the string "3*FOO" was received where a string like
"24" was expected, resulting in an error.

Happily we have good test coverage for comp's use of
RTAPI_MP_ARRAY via tests/module_loading/or2* so even though this
was encountered and reported in the non-runtested hal_ppmc driver,
we can have confidence about the solution.

Close #242.

Signed-off-by: Jeff Epler <jepler@unpythonic.net>
2017-03-06 08:03:11 -06:00
Norbert Schechner
8446ff4b91 gmoccapy_get_ini_info removed unused code
Signed-off-by: Norbert Schechner <nieson@web.de>
2017-03-05 19:32:59 +01:00
Norbert Schechner
ff20647f7c GladeVCP - revert the wrong changes to CombiDRO witch destroyed some other glade applications
Signed-off-by: Norbert Schechner <nieson@web.de>
2017-03-05 19:04:25 +01:00
Dewey Garrett
f291519263 halui.cc fix halui.program.run
before commit using axis gui:
  can't do that (EMC_TASK_PLAN_RUN:507) in manual mode

Signed-off-by: Dewey Garrett <dgarrett@panix.com>
2017-03-05 09:17:50 -07:00
chris morley
b29052d4a5 gscreen -fix missing .themes folder error
Some distributions don't automatically make this directory.
noticed on Mint 17 and 18

Signed-off-by: chris morley <chrisinnanaimo@hotmail.com>
2017-03-03 23:51:58 -08:00
Sebastian Kuzminsky
d5647b581a docs: remove a footnote about the behavior of emc2 v2.4
Signed-off-by: Sebastian Kuzminsky <seb@highlab.com>
2017-03-02 22:48:21 -07:00
Jeff Epler
5ce31592ef travis: manually uninstal gpl3 readline
In the past, the apt resolver automatically uninstalled the gpl3
readline (libreadline-dev, libreadline6-dev) as needed to satisfy
the dependencies of linuxcnc-build-deps.  At some point around
2017-02-10, this changed on travis-ci.org and instead it preferred
to remove linuxcnc-build-deps and leave a bunch of deps (such as
libudev-dev, the first one configure hit) in a non-usable state.
Work around this by manually removing the packages that seem to be
causing the problems.

Signed-off-by: Jeff Epler <jepler@unpythonic.net>
2017-02-22 16:11:20 -06:00
Norbert Schechner
69d272e080 gladeVCP - CombiDRO - make it compatible for both 2.7 and master
gmoccapy - getiniinfo - added get_joints_amount for compatibility 2.7 and master


Signed-off-by: Norbert Schechner <nieson@web.de>
2017-02-19 13:01:54 +01:00
chris morley
d4ea4749dd mitsub_vfd -add docs for the VFD driver
Signed-off-by: chris morley <chrisinnanaimo@hotmail.com>
2017-02-18 00:38:05 -08:00
chris morley
bfed395351 mitsub_vfd -add a driver for Mitsubishi VFDs
Signed-off-by: chris morley <chrisinnanaimo@hotmail.com>
2017-02-18 00:32:54 -08:00
Jeff Epler
82660317e6 Revert "Docs: add info about multi-line comments and add info for the --install option"
This reverts commit d82230b167.

Requested via IRC after discussion of what triple-quoted strings
mean in halcompile.

Signed-off-by: Jeff Epler <jepler@unpythonic.net>
2017-02-14 07:07:43 -06:00
John Thornton
d82230b167 Docs: add info about multi-line comments and add info for the --install option
Signed-off-by: John Thornton <bjt128@gmail.com>
2017-02-14 07:01:38 -06:00
Sebastian Kuzminsky
22c929c1c6 Task: set the stat struct member queuedMDIcommands
This Status variable should track the number of queued MDI commands
in Task, but it's been broken since inception.  I removed the buggy
management of it (rather than fix it) in 2.5.  This commit fixes it
finally, about 4 years later.

Signed-off-by: Sebastian Kuzminsky <seb@highlab.com>
2017-02-10 15:02:54 -07:00
Sebastian Kuzminsky
9e2a8e2078 tests: add a test of stat.queued_mdi_commands
This test verifies that stat->task.queuedMDIcommands (aka
stat.queued_mdi_command in python-land) grows as we add MDI commands to
Task's MDI queue and shrinks as Task executes them.

This test currently fails because queuedMDIcommands is always 0.  I fix
Task in the following commit to set it correctly.

Signed-off-by: Sebastian Kuzminsky <seb@highlab.com>
2017-02-10 15:02:14 -07:00
Sebastian Kuzminsky
d8967b585a python hal module: better doc strings for connect() and new_sig()
Signed-off-by: Sebastian Kuzminsky <seb@highlab.com>
2017-02-10 14:59:36 -07:00
Sebastian Kuzminsky
588f815c45 linuxcnc python module: add a doc string for stat.queued_mdi_commands
Signed-off-by: Sebastian Kuzminsky <seb@highlab.com>
2017-02-10 14:59:36 -07:00
Jeff Epler
b115720404 fix link error on i686 with gcc, or maybe objcopy 2.27
This commit fixes #228, reported by Anton Midyukov.  Adapted for 2.7
from Jeff Epler's commit f87c0244.

On Debian Stretch on i686, building 2.7 results in rtlibs link-time
failures like this:

    Compiling realtime objects/hal/components/clarke2.c
    Linking ../rtlib/clarke2.so
    `__x86.get_pc_thunk.dx' referenced in section `.text' of objects/clarke2.tmp: defined in discarded section `.text.__x86.get_pc_thunk.dx[__x86.get_pc_thunk.dx]' of objects/clarke2.tmp
    collect2: error: ld returned 1 exit status
    make: *** [../rtlib/clarke2.so] Error 1

Looks related to this bug on the GCC bugzilla:

    https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59842

Signed-off-by: Sebastian Kuzminsky <seb@highlab.com>
2017-02-06 09:26:03 -07:00
Chris Morley
e4aa855729 classicladder -fix sequential variable access
step timing was incorrectly mapped on to word variables.
step timing variables could not be selected to watch or evaluate.

Signed-off-by: Chris Morley <chrisinnanaimo@hotmail.com>
2017-01-28 22:11:13 -08:00
Chris Morley
1f29c7cf5b classicladder -fix whitespace errors
no functional changes intended

Signed-off-by: Chris Morley <chrisinnanaimo@hotmail.com>
2017-01-28 22:06:28 -08:00
Norbert Schechner
c9abcccaaa gmoccapy_plasma : wron hal pin names
Signed-off-by: Norbert Schechner <nieson@web.de>
2017-01-23 19:21:54 +01:00
Norbert Schechner
22cf22adf8 gmoccapy_1_5_7 - deleted unneeded print commands
Signed-off-by: Norbert Schechner <nieson@web.de>
2017-01-11 18:40:46 +01:00
Norbert Schechner
6a264585f2 gmoccapy_1_5_7 - new hal pin gmoccapy.ignore-limits
ver. 1.5.7
- new hal pin gmoccapy.ignore-limits so that this function can be
  handled from hardware switch
  Ask by some users, done because of a wish of Timothy Snowden

Signed-off-by: Norbert Schechner <nieson@web.de>
2017-01-11 18:17:14 +01:00
Chris Morley
5013a5af7c gladevcp -fix delta scale pin not updating if wheel scroll used
Signed-off-by: Chris Morley <chrisinnanaimo@hotmail.com>
2017-01-10 20:23:26 -08:00
Chris Morley
53fe153c8c gladevcp -add missing icon image for hal_dial
Signed-off-by: Chris Morley <chrisinnanaimo@hotmail.com>
2017-01-10 20:22:50 -08:00
Dewey Garrett
b4cd046890 xhc-hb04.tcl: if prior connects, continue with msg
Sometimes users attempt to use xhc-hb04.tcl with prior
HALFILE hal connections (typically halui pins) that are
required for use of xhc-hb04.tcl.

Formerly, such connections were reported to stdout
and prevented LinuxCNC startup with xhc-hb04.tcl.

Now, such connections are reported to both stdout and a
popup -- but startup is allowed to continued with
a concomitant loss of functionality

Often, users may be able to correct by reordering HALFILEs
and/or using the signal names created by xhc-hb04.tcl

For more complicated configurations, users may loadusr
the xhc-hb04 userspace driver directly and forego use of
xhc-hb04.tcl.

Signed-off-by: Dewey Garrett <dgarrett@panix.com>
2017-01-09 10:08:32 -07:00
John Thornton
5e827af588 Docs: fix markup
Signed-off-by: John Thornton <bjt128@gmail.com>
2017-01-09 06:31:34 -06:00
John Thornton
1bae692336 Docs: add or2 example
Signed-off-by: John Thornton <bjt128@gmail.com>
2017-01-09 05:01:09 -06:00
Dewey Garrett
e94efeb12a ini-config.txt: USER_DEFINED_FUNCTION_MAX_DIRS
clarify that it is a compile-time item
not an ini [RS274NGC] setting

Signed-off-by: Dewey Garrett <dgarrett@panix.com>
2017-01-01 19:52:31 -07:00
Dewey Garrett
b12d176673 axis.tcl expand tool display widget for tool info
ref complaints:
http://www.mail-archive.com/emc-developers@lists.sourceforge.net/msg17017.html
https://forum.linuxcnc.org/21-axis/32032-make-dialog-box-wider#84574

Signed-off-by: Dewey Garrett <dgarrett@panix.com>
2017-01-01 19:36:59 -07:00
Dewey Garrett
f087494704 axis.tcl remove unusd widget: .info.offset
Signed-off-by: Dewey Garrett <dgarrett@panix.com>
2017-01-01 19:36:59 -07:00
Dewey Garrett
e05057e92c axis.py: shorten tool touch off widget title text
bug introduced with availability of tool touch off button

ref:
https://forum.linuxcnc.org/21-axis/32027-request-to-make-tool-no-visible#84536

Signed-off-by: Dewey Garrett <dgarrett@panix.com>
2017-01-01 19:36:59 -07:00
Norbert Schechner
9ec9afe298 gmoccapy_1_5_9_10 - bug if no macros in ini file
ver. 1.5.6.10
- if no MARCO was found in INI getiniinfo returned a NONE, leading to an
  exception in gmoccapy, corrected that.

Signed-off-by: Norbert Schechner <nieson@web.de>
2017-01-01 15:02:01 +01:00
Norbert Schechner
c738752493 Merge branch '2.7' of ssh://norbert@git.linuxcnc.org/git/linuxcnc.git into 2.7 2016-12-30 19:10:55 +01:00
Norbert Schechner
531e106a12 gmoccapy_1_5_6_9 - bug in macro button handling
ver. 1.5.6.9
- if no MACROS where given, or the paths where not correct, the Keyboard button
  in MDI mode was not any more in the most right position, leading to wrong
  order in horizontal hal button handling

Signed-off-by: Norbert Schechner <nieson@web.de>
2016-12-30 19:10:12 +01:00
John Thornton
1aa0dba552 Docs: clarify g28/30 description
Signed-off-by: John Thornton <bjt128@gmail.com>
2016-12-26 13:33:07 -06:00
John Thornton
82cb639271 Docs: add link
Signed-off-by: John Thornton <bjt128@gmail.com>
2016-12-26 13:32:26 -06:00
John Thornton
2040cb1dd4 Docs: remove g code description and add link to g code
g code descriptions should be only in one place gcode.txt

Signed-off-by: John Thornton <bjt128@gmail.com>
2016-12-26 13:32:02 -06:00
John Thornton
4fc1bd6aaa Docs: remove m6 from modal group description
Signed-off-by: John Thornton <bjt128@gmail.com>
2016-12-26 13:30:45 -06:00
John Thornton
fa35ae024d Docs: add link to machine origin
this may be a term that does not make sense to everyone

Signed-off-by: John Thornton <bjt128@gmail.com>
2016-12-26 13:29:32 -06:00
John Thornton
a380981975 Docs: fix a typo
Signed-off-by: John Thornton <bjt128@gmail.com>
2016-12-16 09:28:25 -06:00
John Thornton
b706123a22 Docs: add more information to the addf command
Signed-off-by: John Thornton <bjt128@gmail.com>
2016-12-16 09:27:15 -06:00
Norbert Schechner
090a9d0df2 Merge branch '2.6' into 2.7
Conflicts:
	docs/src/gui/gmoccapy.txt

Signed-off-by: Norbert Schechner <nieson@web.de>
2016-12-13 21:21:59 +01:00
Norbert Schechner
904c31200a Merge branch '2.7' of ssh://norbert@git.linuxcnc.org/git/linuxcnc.git into 2.7 2016-12-13 21:19:48 +01:00
Norbert Schechner
ae7a6e93e3 docs - gmoccapy - sorted video links with headlines
Signed-off-by: Norbert Schechner <nieson@web.de>
2016-12-13 21:19:05 +01:00
Norbert Schechner
7c1f1affb4 docs - gmoccapy - added a known problem with macros
Signed-off-by: Norbert Schechner <nieson@web.de>
2016-12-13 21:01:29 +01:00
Sebastian Kuzminsky
f4c9802365 docs: fix cut-n-paste bug in mb2hal manpage
Signed-off-by: Sebastian Kuzminsky <seb@highlab.com>
2016-12-11 14:24:05 -07:00
Norbert Schechner
332beb85f6 Merge branch '2.6' into 2.7
Conflicts:
	src/emc/usr_intf/gmoccapy/gmoccapy.py
	src/emc/usr_intf/gmoccapy/release_notes.txt

added the solution of G96 bug also to 2.7 release

Signed-off-by: Norbert Schechner <nieson@web.de>
2016-12-03 17:35:03 +01:00
Norbert Schechner
df19ffe6f9 gmoccapy_1_5_6_2_3 - G96 bug solved
ver. 1.5.6.2.3
- bug in handling a subroutine call from MDI, containing
  G96 code. Thanks to Hakan for reporting this.

Signed-off-by: Norbert Schechner <nieson@web.de>
2016-12-03 17:31:57 +01:00
John Thornton
8a172f63ec Docs: some corrections thanks to dewey
Signed-off-by: John Thornton <bjt128@gmail.com>
2016-11-12 07:02:57 -06:00
John Thornton
97d3c5dc52 Docs: fix spelling error
Signed-off-by: John Thornton <bjt128@gmail.com>
2016-11-12 07:02:57 -06:00