|
Stepdance Software Library
|
Used for running a homing routine on a machine. More...
#include <homing.hpp>
Public Member Functions | |
| void | begin () |
| Initialize the Homing plugin. Must be called during setup(). | |
| void | add_axis (uint8_t limit_switch_port, DecimalPosition value_at_limit, int direction, DecimalPosition velocity, BlockPort *target) |
| Register an axis to home. The homing routine will go through the regisered axes and home each one in the order in which they are registered. | |
| void | start_homing_routine () |
| Launch the homing routine (machine will move until it hits the limit switch for each registered axis). | |
Protected Member Functions | |
| void | loop () |
Used for running a homing routine on a machine.
The Homing plugin lets the user define a number of axes they want to home Here's an example of how to configure and run a homing routine :
| void Homing::add_axis | ( | uint8_t | limit_switch_port, |
| DecimalPosition | value_at_limit, | ||
| int | direction, | ||
| DecimalPosition | velocity, | ||
| BlockPort * | target ) |
Register an axis to home. The homing routine will go through the regisered axes and home each one in the order in which they are registered.
| limit_switch_port | Stepdance board port for the limit switch. |
| value_at_limit | Coordinate value we want to assign at the limit switch. |
| direction | Direction in which the machine should jog (backward or forward?) to hit the switch. |
| velocity | Speed at which the machine should jog to find the limit. |
| target | Blockport corresponding to the axis to home. |