This commit introduces a new set of registers 0x1e, 0x1f and 0x20 which allow reading and writing iRun current values for each axis/motor.
Please note the register contains raw TMC2130 iRun value which needs to be translated into mA to be understandable by people. Translation table of iRun -> mA is present in tmc2130.cpp for now.
Technically I had to create a runtime MotorCurrents data structure (+9B in RAM) which is now used where the original axisParams[].currents has been used.
[x] Shall we update the currents also in MovableBase::InitMovementNoReinitAxis()?
[ ] May be there are spots where some more changes axisParams -> axisData needs to take place.
This commit introduces a new set of registers 0x1e, 0x1f and 0x20 which allow reading and writing iRun current values for each axis/motor.
Please note the register contains raw TMC2130 iRun value which needs to be translated into mA to be understandable by people. Translation table of iRun -> mA is present in tmc2130.cpp for now.
Technically I had to create a runtime MotorCurrents data structure (+9B in RAM) which is now used where the original axisParams[].currents has been used.
MovableBase::InitMovementNoReinitAxis()
?CPUFLASH: +44B RAM: +9B