Skip to content

Commit ecd007c

Browse files
committed
Pending proper restrictions implementation, use dimension values for limit switch positions.
1 parent f7abaca commit ecd007c

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

bebopr.h

+2
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ extern int config_reverse_axis( axis_e axis);
3333
// these all return a hardware dimenstion
3434
extern double config_axis_get_min_pos( axis_e axis);
3535
extern double config_axis_get_max_pos( axis_e axis);
36+
extern double config_axis_get_min_limsw_pos( axis_e axis);
37+
extern double config_axis_get_max_limsw_pos( axis_e axis);
3638
extern double config_get_step_size( axis_e axis);
3739

3840
// these all return physical limitations

bebopr_r2.c

+12
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,18 @@ double config_axis_get_min_pos( axis_e axis)
290290
}
291291
}
292292

293+
double config_axis_get_min_limsw_pos( axis_e axis)
294+
{
295+
// TODO: Until properly implemented, return min pos.
296+
return config_axis_get_min_pos( axis);
297+
}
298+
299+
double config_axis_get_max_limsw_pos( axis_e axis)
300+
{
301+
// TODO: Until properly implemented, return max pos.
302+
return config_axis_get_max_pos( axis);
303+
}
304+
293305
/*
294306
* Specify the feed used during homing operations
295307
* to release the home switch.

0 commit comments

Comments
 (0)