add estop on movement error parameter

pull/371/head^2
gabrielburnworth 2017-07-31 16:37:20 -07:00
parent 2cc6e900d8
commit f4ec89b6a9
2 changed files with 19 additions and 0 deletions

View File

@ -69,6 +69,10 @@ export namespace ToolTips {
export const MAX_MOVEMENT_RETRIES =
`Number of times to retry a movement before stopping.`;
export const E_STOP_ON_MOV_ERR =
`Emergency stop if movement is not complete after the maximum number of
retries.`;
export const MAX_SPEED =
`Maximum travel speed after acceleration in motor steps per second.`;

View File

@ -40,6 +40,21 @@ export function Motors({ dispatch, bot }: MotorsProps) {
dispatch={dispatch} />
</Col>
</Row>
<Row>
<Col xs={6}>
<label>
{t("E-Stop on Movement Error")}
</label>
<SpacePanelToolTip tooltip={t(ToolTips.E_STOP_ON_MOV_ERR)} />
</Col>
<Col xs={2}>
<ToggleButton
toggleValue={mcu_params.param_e_stop_on_mov_err}
toggleAction={() =>
settingToggle("param_e_stop_on_mov_err", bot)}
/>
</Col>
</Row>
<NumericMCUInputGroup
name={t("Max Speed (steps/s)")}
tooltip={t(ToolTips.MAX_SPEED)}