Rare planner bug fix and added simulator defaults.

- Planner bug when moving along a diagonal back and forth on the same
path. Rare for the fact that most CAM programs don’t program this type
of motion, neither does jogging. Fixed in this update.

- Added grbl_sim defaults for testing purposes.
This commit is contained in:
Sonny Jeon
2015-02-04 19:12:30 -07:00
parent bf37ab7e7b
commit a358c6de0b
4 changed files with 41 additions and 1 deletions

View File

@@ -214,6 +214,9 @@ uint8_t system_execute_line(char *line)
}
// Returns machine position of axis 'idx'. Must be sent a 'step' array.
// NOTE: If motor steps and machine position are not in the same coordinate frame, this function
// serves as a central place to compute the transformation.
float system_convert_axis_steps_to_mpos(int32_t *steps, uint8_t idx)
{
float pos;