APIs, concepts, guides, and more

◆ Cleanup()

void Cleanup ( MotionController * controller)

Cleanup the controller and restore the object counts to the original values.

void Cleanup(MotionController* controller)
{
// Restore the object counts to the original values
if (initialAxisCount != -1) { controller->AxisCountSet(initialAxisCount); }
// Reset the object counts
}

[Cleanup]

Examples
axis-configuration.cpp, calculate-acceleration-from-velocity.cpp, config.h, difference-of-position-user-limit.cpp, hello-rttasks.cpp, phantom-axis.cpp, point-to-point.cpp, random-walk.cpp, and starter-template.cpp.

Definition at line 193 of file config.h.