Skip to content

Commit

Permalink
Merge pull request #216 from Canadian-Light-Source/brake_bug
Browse files Browse the repository at this point in the history
fix brake bug
  • Loading branch information
kivel authored Apr 8, 2024
2 parents 3b6d8d8 + 969602e commit e545ff0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/jinja2/templates/drive.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@
{#- scaling #}
ecmcConfigOrDie "Cfg.SetAxisDrvScaleNum({{ axis.id }},{{ drive.numerator }})"
ecmcConfigOrDie "Cfg.SetAxisDrvScaleDenom({{ axis.id }},{{ drive.denominator }})"
{#- Brake #}
{#- brake #}
{%- if drive.brake %}
ecmcConfigOrDie "Cfg.SetAxisDrvBrakeEnable({{ axis.id }}, {{ drive.brake.enable|int }})"
ecmcConfigOrDie "Cfg.LinkEcEntryToObject("{{ drive.brake.output }}","ax{{ axis.id }}.drv.brake")"
ecmcConfigOrDie "Cfg.SetAxisDrvBrakeEnable({{ axis.id }}, {{ drive.brake.enable|int }})"
{%- if drive.brake.closeAhead %}
ecmcConfigOrDie "Cfg.SetAxisDrvBrakeOpenDelayTime({{ axis.id }},{{ drive.brake.openDelay }})"
{%- endif %}
Expand Down

0 comments on commit e545ff0

Please sign in to comment.