rene-dev / stmbl

AC Servo Driver for STM32F4
GNU General Public License v3.0
842 stars 404 forks source link

Include default linrev0.scale = 1.0 in template #68

Closed shulter closed 6 years ago

shulter commented 6 years ago

linrev0.scale is zero if not set in conf.

crinq commented 6 years ago

it's not zero: https://github.com/rene-dev/stmbl/blob/master/shared/comps/linrev.c#L42-L45 TODO: allow negative values and reset PIN to clamped value

linrev0.scale is always motor/machine specific (like conf0.j) so it should be in your config. You can set a default value in the nrt_init function.