Add a couple of HAL components to convert to and from Gray code
Signed-off-by: Andy Pugh <andy@bodgesoc.org>
I forgot that sim has no idea what an unsigned int is.
Luckily I don't actually care if I end up with 64 bits.


Signed-off-by: Andy Pugh <andy@bodgesoc.org>
gmoccapy_0_9_7_5_1 - corrected the version number in handler file

Signed-off-by: Chris Morley <chrisinnanaimo@hotmail.com>
Revert "interp: avoid violating Python runtime contract"

This reverts commit 33380c4b144b5508717209f634bc2e98aaba17ba.

This "fix" fails on at least some machines.  I think the flaw in my analysis
has to do with moving _setup from all-bits-zero initialized storage to new'd
storage, so all the scalar fields are undefined, but I am not 100% confident
this is the right explanation.

In any case, the cure was apparently worse than the disease, and we'll have to
wait for MAH's more elegant and thorough fix.
STEPGEN_MAXVEL patch

Signed-off-by: Russell Brown <russell@lls.lls.com>
motion -add spindle veloity pins with absolute output

Many config need velocity with absolute values, such
as for 0-10 volt spidle drives. These pins make it so
the user doesn't need to fool around with the abs component.
Since we already have the spindle fwd and rev pins this compliments them

Signed-off-by: Chris Morley <chrisinnanaimo@hotmail.com>
trajectory planner -Don't use feed override in rapids

Rapids should not follow feed override settings.
It will still follow max velocity override.
This allows feed and rapids overrides to be set mostly independantly.
If you set max velocity override low enough it will affect feed rate.
pncconf -add missing INI substitution in HAL file

STEPGEN_MAXVEL and STEPGEN_MAXACCEL were added as INI substituitons
in a previous commit - oops missed some entries.
pncconf -fix blank abs and lowpass HAL commands

selecting a gladVCP panel without a spindle speed display
would end up getting a error becauase of trying to load
components without names.
pncconf -use motions need absolute spindle veelocity pins

add the pins to the standard spindle signals.
use them instead of using an absolute component.
pncconf -use an absolute spindle cmd pin if minlimit is 0

This is so the voltage will be 0 to 10 rather then -10 to 10
This covers sserial cards.
Cards that use the main board pwm gen still need this fixed.
they will remain as -10 to 10 - because there is no min limit
setting. I need to add a checkbox to the GLADE file...
gmoccapy_0_9_8 - new error messaging system

ver. 0.9.8
- introduced notification as gmoccapy error messaging system
- rebuild the settings page to make the message
  system settings availible
- new default startup position
- changed DRO textcolor label to DRO background color label,
  because that is what you change
- jogging with keyboard will jog full speed if SHIFT
  is hold down
- <Super_L> key will delete the last message of
  gmoccapy message system
- <STRG>+<SPACE> delete all gmoccapy messages at once
- switching on the machine will reset the GUI to manual mode
- the setup button is no longer a member of the
  mode radiobuttons it is now a toggle button,
  so pressing it twice will bring you to manual mode
- corrected add added translations for
  Spanish and German prepared the files for Serbian

Signed-off-by: Chris Morley <chrisinnanaimo@hotmail.com>
STEPGEN_MAXVEL patch

Signed-off-by: Russell Brown <russell@lls.lls.com>
pncconf -add missing INI substitution in HAL file

STEPGEN_MAXVEL and STEPGEN_MAXACCEL were added as INI substituitons
in a previous commit - oops missed some entries.
pncconf -fix blank abs and lowpass HAL commands

selecting a gladVCP panel without a spindle speed display
would end up getting a error becauase of trying to load
components without names.
axis: Don't directly use trp->result

This has been deprecated in Tcl for a very long time, and will
reportedly become a build error in Tcl 8.6. (sfbug#332)
emcsh: don't directly write to interp->result

This has been defined as not working for quite a long time.  It looks
like this routine is probably unused, but fix it anyway.  (sfbugs#332)
remove unused BITOPS_DEFINE
build: Enable C99, and no longer forbid declaration-after-statement

gcc has supported the C99 feature declaration-after-statement
since 3.0(!): http://gcc.gnu.org/gcc-3.0/c99status.html

as a result, any version of gcc plausibly being used today will support
this language feature at least when the relevant flag (i.e., -std=gnu99)
is passed and/or the relevant warning is silenced (i.e., -Wno-declaration-
after-statement)

In some versions of rtai, rtai_lxrt.h includes extern inlines which refer
to pthread functions.  We require that these function bodies not be
emitted into the object file when they are unused; this is accomplished
by the -fgnu89-inline flag, which uses the old inline behavior even when
c99/gnu99 mode is enabled.
pncconf -add bit and word memory options to classicladder

Now you can select the amount of internal bits and words.
up to 100 each.