File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -117,6 +117,29 @@ axis_type_t kinematics_axis_type_from_char(char type_char) {
117117 return type ;
118118}
119119
120+ char kinematics_axis_type_to_char (const axis_type_t type ) {
121+ switch (type ) {
122+ case AXIS_TYPE_A :
123+ return 'A' ;
124+ case AXIS_TYPE_B :
125+ return 'B' ;
126+ case AXIS_TYPE_C :
127+ return 'C' ;
128+ case AXIS_TYPE_E :
129+ return 'E' ;
130+ case AXIS_TYPE_X :
131+ return 'X' ;
132+ case AXIS_TYPE_Y :
133+ return 'Y' ;
134+ case AXIS_TYPE_Z :
135+ return 'Z' ;
136+ case AXIS_TYPE_MAX :
137+ break ;
138+ }
139+
140+ return '\0' ;
141+ }
142+
120143void * kinematics_get_config (void ) {
121144 switch (core_kinematics .type ) {
122145 case KINEMATICS_CARTESIAN :
Original file line number Diff line number Diff line change @@ -86,6 +86,7 @@ typedef struct {
8686int kinematics_init (kinematics_config_t * config );
8787kinematics_type_t kinematics_type_get (void );
8888axis_type_t kinematics_axis_type_from_char (char type_char );
89+ char kinematics_axis_type_to_char (const axis_type_t );
8990void * kinematics_get_config (void );
9091int kinematics_get_motor_movement (coordinates_t * delta ,
9192 coordinates_t * movement );
You can’t perform that action at this time.
0 commit comments