| aMotion_SetConfig | Index |
Definition:
Parameters:
Return Value:
Description:
This routine writes a 2-byte parameter to a motion control port. It may only be used with motion control ports that have 2-byte write access. Several of the other motion control functions use macros that reference this routine. Use of this routine requires low-level knowledge of TEA and IO port conventions. It is only recommended for experienced users. See the Moto 1.0 Port Documentation for more details.
Example:
#include <aMotion.tea>
aMotion_SetConfig(0, aOffsetMotionSetpoint, 120);
This would write a new setpoint of 120 for motion control channel 0.
#include <aMotion.tea>
aMotion_SetConfig(0, aOffsetMotionLatency, 5);
This would set the back-EMF latency constant for motion control channel 0 to 5. This is equivlent to 0.5ms.
Related: