From aaf4690ae93e30ab2b64a818a459f6d729a2ff74 Mon Sep 17 00:00:00 2001 From: Valentina Gaggero Date: Tue, 14 Feb 2023 13:45:27 +0100 Subject: [PATCH] AMC-BLDC: use HAsQuadEnc flag in motor configuration --- .../amcbldc/supervisor/SupervisorFSM_RX.slx | Bin 573676 -> 573739 bytes .../supervisor/custom_code/rtw_motor_config.c | 2 +- .../supervisor/custom_code/rtw_motor_config.h | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/boards/amcbldc/supervisor/SupervisorFSM_RX.slx b/boards/amcbldc/supervisor/SupervisorFSM_RX.slx index 024393911a328ac06c116cb158eff81080263e80..3a4a7d489bd02ea0b084c7baa8da04c7c0b0f37a 100644 GIT binary patch delta 8461 zcma)C3zQbcm7eJth86?_1!s83F#nH&($Mv;Qb9!o4ZcX?`vF~D-Dq5cpx^_;04k{Q zg$kt+AGpz&pa_Bt2m#dfk%x*J6E%s+t|sgn6XWjjWS7--zxw|HN%ovQ;hb@%`}FOq zy7#-^{qAi)T2xuRxY9N7n&xr)_xt9k0pj_)8ydn-d&5Eg^{3)Czw)U#UN+&})`W~{ zPxP2}DkT0QJS7(#J?``gz5Iw9<3UXmRJ!i{zIWgCMdyKcH7_^4uAg~L*KE?zFqW%P-^S@l`}F8=t`pMCVBk&|cg zZEwwa>BbEsFTLT9zdWz?x91NUKL6Dxzqj-!ubkO)+SPq7`r6@}Crvw`qhIx`t4Du( z)BzT~hczOi#-^ZT2t7spTfi)LMVN-D4I zxA@*2{olCvs7HFN|I=fgz0YU=^Fps3vs>S@jVpflQ~IkOyFb1A#w9PWJZ;&hU2AqP zT$w+1?7|H#Q;xg7^PFk#=6%kZb<6MDEeEl_{NYsUpG*Xww{4ld{pzzO zF1Yf$r#yRewBf@c7hbh%{0r@0O#j)_w|qY8SCh#}$KUzgnJ2uoaNW`+kA5`o_D7%H z+Ij7OmKkrKviqYs@4t3P+avE>{6Oc%J6>JTaQf7y=A@yaA;!;$h7U*1zy6hmu0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