robertobucher / pysimCoder

Block diagram editor and real time code generator for Python
GNU General Public License v3.0
142 stars 31 forks source link

CodeGen/nuttx/devices/nuttx_p3m_spi.c: fix clearing spimcst structure and IRC parameters casting #88

Closed janouja closed 1 month ago

janouja commented 1 month ago

Fix clearing the spimcst structure with memset and fix uint casting to first signed integer and then to double on the IRC position and offset for the 3 phase PMSM motor block for NuttX.