Commit graph

135 commits

Author SHA1 Message Date
CMorley
3497702360 hal_glib - add motion type message 2023-01-06 16:52:59 -08:00
CMorley
1b917befcd hal_glib -add linuxcnc state constants 2022-06-26 12:57:41 -07:00
CMorley
27caf6bd6a hal_glib -add useful mode and message constants
easier to reference them that way
2022-06-17 15:09:24 -07:00
Steffen Moeller
575c7770c0 Changed [gG] [cC]ode to G-code where appropriate
Headers and titles have "Code" start with a capital, always with hyphen.
Somewhat unfortunate, for some files I also removed blanks at the ends of lines, which makes reading this patch more difficult than it meant to be.
2022-01-17 20:33:48 +01:00
CMorley
eb9d3f8733 hal_glib -is_joint_homed should return a bool 2021-12-11 23:27:10 -08:00
CMorley
f185973b3b qtvcp -work around error caused by mising TRAJ entry
If the the MAX_LINEAR_VELOCITY  is missing from the TRAJ entry,
 the default in linuxcnc is 1e99 which GObject doesn't like.
2021-11-10 20:39:56 -08:00
CMorley
d216fa3a29 hal_glib -add joint follwing error message 2021-10-08 14:22:38 -07:00
0c8a0058bf use python3 in all #!python lines 2021-09-02 18:32:58 -05:00
Rene Hopf
86f6b61dff Merge branch 'master' into master-gtk3 2021-08-01 00:17:05 +02:00
Chris Morley
c25ec88e36 hal_glib: add g90/91 to messages 2021-07-24 10:12:06 -07:00
Rene Hopf
32bcd9db61 Merge branch 'master' into master-gtk3 2021-07-07 09:19:06 +02:00
Chris Morley
1777b2d978 qtvcp -add STATUS message for notify dialog buttons/ limit # displayed
if using notify dialogs, it's difficult to catch the response from the handler file.

also limit the number of displayed messages (configurable)

Phill did the hard work - I just adjusted things.
Hope I didn't break the premise
2021-06-25 21:38:00 -07:00
Chad Woitas
27efbce578 hal_glib - Replacing Deprecated Flag 2021-06-23 08:22:21 -06:00
Chris Morley
b149dc61d2 hal_glib -protect against HAL component error.
In designer the HAL component might not be initialized.
2021-06-14 23:27:22 -07:00
Rene Hopf
cec035b90a fix various gtk3 deprecated warnings 2021-06-11 12:25:37 +02:00
Chris Morley
ffd2a70001 qtvcp/hal_glib :add at-speed info to message; add more status image switcher states
spindle-control-changed now has the at-speed state.
This is used in status image switcher to change images based on current spindle state.
Also added feedmode states (G93 94 95) to status image switcher
Updated other widgets to use the modified status message
2021-06-02 00:45:02 -07:00
Chris Morley
c6aaa78f8c hal_glib -set hardlimits message on forced update
otherwise if hard limits are tripped on start up, a message isn't sent
2021-04-01 14:43:22 -07:00
Chris Morley
e4f4d83307 hal_glib: fix error when using GLADE editor
when using GLADE editor CYCLE_TIME is not defined.
We add a default time
2021-02-23 05:24:08 -08:00
Chris Morley
9f9e858bbe hal_glib -fix error when designer loads because of no INI
hal_glig checks the INI for info - fails when loading widgets in editors
2021-01-29 00:30:04 -08:00
Chris Morley
28905ae7e8 hal_glib -add configurable update time for GladeVCP based code
Cycle time can be in ms or seconds too!
allows a user to adjust update for underpowered CPUs
2021-01-28 01:48:24 -08:00
Chris Morley
c6bde43b02 hal_glib -add fcode and blend code messages
In master the Fcode is mostly right now!
blend code shows the G64 blend and cam tolerance
2021-01-27 18:42:28 -08:00
luz paz
ea08a53edd docs: fix source comment and doc typos in lib/python
Found via `codespell v2.0.dev`  
```
codespell -q 3  -L ans,doubleclick,halp,parms
```
2021-01-04 09:53:06 -05:00
Chris Morley
18fb982943 Merge branch '2.8' 2020-12-13 19:17:31 -08:00
Chris Morley
2b44a6337c hal_glib -fix check_for_modes always failing
This showed it's self in qtvcp as always setting MDI mode even
when already in MDI mode. this would cut short any running MDI codes.
2020-12-13 18:43:27 -08:00
Chris Morley
617af599f0 hal_glib -add a general progress signal
pretty much all progress bars have some text to add.
our new signal has integer and python object so we can cover
future changes like adding text.
2020-11-14 15:27:05 -08:00
Chris Morley
99ed8ac260 hal_glib -do basic check for float variable befoe setting jog increments
increments must be a number
2020-10-17 14:33:00 -07:00
Chris Morley
f03ac59640 Merge branch '2.8' 2020-10-13 23:06:01 -07:00
Chris Morley
29d9d33955 hal_glib -add convience function for is_joint_homed 2020-10-13 22:59:32 -07:00
chris
389b242bb7 qtvcp -update for python3 2020-09-07 00:58:15 -07:00
Chris Morley
b864386195 Merge branch '2.8' 2020-09-03 22:02:38 -07:00
Chris Morley
11fd623172 hal_glib.py -correct inconsistant signal spelling
This make no actual difference, in practive all underscores are converted
to dashes befoire being sent out.
2020-09-03 21:30:29 -07:00
Chris Morley
447042b413 Merge branch '2.8' 2020-07-01 18:37:41 -07:00
Chris Morley
f08956ebc9 hal_glib -fix emitting double estop signals
hopefully make the code more explicit too
2020-07-01 18:35:26 -07:00
Chris Morley
aeb6a8f327 Merge branch '2.8' 2020-06-27 16:31:59 -07:00
Chris Morley
b878cda8b5 hal_glib -add get_max_velocity function
returns current max velocity in units/per minute
2020-06-27 16:21:27 -07:00
Chris Morley
09397b8d3f Merge branch '2.8' 2020-06-20 23:41:19 -07:00
Chris Morley
9f832f6790 hal_glib -add homing to force_update function 2020-06-20 23:40:33 -07:00
Chris Morley
cf6945d9b2 Merge branch '2.8' 2020-05-23 18:45:21 -07:00
Chris Morley
12d62abee0 hal_glib -add command state messages
command-running, command-stopped, comand-error
2020-05-23 17:55:47 -07:00
Chris Morley
485472652e Merge branch '2.8' 2020-05-10 10:54:35 -07:00
Chris Morley
b8545c33f5 hal_glib -add a graphics-loading-progres signal
qtvcp can produce this signal - I should add the capability to gladvcp..
2020-05-10 10:43:19 -07:00
Rene Hopf
ac66fe3eb0 python3 compatibility in lib/python 2020-04-26 22:56:52 +02:00
Chris Morley
1114a01759 hal_glib -update is_spindle_on, add get_spindle _speed()
While testing multiple spindles config,
these functions were needed/needed update.
2020-04-07 15:58:38 -07:00
Chris Morley
cda151fb67 qtvcp -add is_homing to hal_glib and check for it in qt_action
Was sending messages about limits switches durimg homing, which is expected
when using shared limits/home. now we ignor them during homing
2020-04-02 08:59:10 -07:00
Chris Morley
6b004beba1 qtvcp -add ACTION function to set graphics views
Seems I had not been using ACTION to do view changes...
breaking my own rules!
using ACTION allows us to do updates in the future without breaking
old configs in most cases.

changed the GObject signal to add a python object - for options
that python option will be a dict
2020-03-06 14:55:02 -08:00
Chris Morley
7f73c4291c hal_glib -initiate spindle-control-changed to zero
So LEDs etc are correct when linuxcnc starts
2020-03-01 18:01:04 -08:00
Chris Morley
13dc4b3226 hal_glib -add a function to give the tool number 2019-12-09 03:04:24 -08:00
Chris Morley
3fdfa33869 hal_glib -add unhomed message 2019-11-09 12:29:03 -08:00
Chris Morley
b7582ec7fa hal_glib -update _is_all_homed variable before emitting message
Otherwise if you call is_all_homed() it will report wrong
2019-11-03 00:16:22 -07:00
Chris Morley
7d4192170d hal_glib -add state to override-limits-changed, add is_ functions
State of limits_override is probably more importatant - not sure you
can set override on separate joints.
Added functions:
is_hard_hard_limits_tripped
is_limits_override_set
2019-09-23 00:36:45 -07:00