Skip to content

Commit

Permalink
fix brake bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Niko Kivel committed Apr 8, 2024
1 parent a708ef0 commit 969602e
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 969602e

Please sign in to comment.