motion.c motion.tp-reverse is an output

probably a typo unnoticed to to few users connecting
this pin.

also add motion.tp-reverse to motion man page
This commit is contained in:
Dewey Garrett 2019-12-04 20:26:19 -07:00
parent 57199ba79f
commit 3a47be11ed
2 changed files with 5 additions and 1 deletions

View file

@ -205,6 +205,10 @@ Motion mode is teleop (axis coordinate jogging available).
Current tool offset for each axis where
(\fBL\fR is the axis letter, one of: \fBx y z a b c u v w\fR)
.TP
\fBmotion.tp\-reverse\fR OUT BIT
Trajectory planning is reversed (reverse run)
.SH AXIS PINS
(\fBL\fR is the axis letter, one of: \fBx y z a b c u v w\fR)

View file

@ -354,7 +354,7 @@ static int init_hal_io(void)
if ((retval = hal_pin_bit_newf(HAL_IN, &(emcmot_hal_data->feed_hold), mot_comp_id, "motion.feed-hold")) != 0) goto error;
if ((retval = hal_pin_bit_newf(HAL_IN, &(emcmot_hal_data->feed_inhibit), mot_comp_id, "motion.feed-inhibit")) != 0) goto error;
if ((retval = hal_pin_bit_newf(HAL_IN, &(emcmot_hal_data->homing_inhibit), mot_comp_id, "motion.homing-inhibit")) != 0) goto error;
if ((retval = hal_pin_bit_newf(HAL_IN, &(emcmot_hal_data->tp_reverse), mot_comp_id, "motion.tp-reverse")) < 0) goto error;
if ((retval = hal_pin_bit_newf(HAL_OUT, &(emcmot_hal_data->tp_reverse), mot_comp_id, "motion.tp-reverse")) < 0) goto error;
if ((retval = hal_pin_bit_newf(HAL_IN, &(emcmot_hal_data->enable), mot_comp_id, "motion.enable")) != 0) goto error;
/* export motion-synched digital output pins */