-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- working I2C with autoend - added dummy kinematic for test purposes
- Loading branch information
1 parent
fca2a2c
commit 4baa1a8
Showing
6 changed files
with
113 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/* | ||
Name: kinematic_dummy.c | ||
Description: Custom kinematics definitions for a dummy kinematics | ||
Copyright: Copyright (c) João Martins | ||
Author: João Martins | ||
Date: 01-03-2025 | ||
µCNC is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. Please see <http://www.gnu.org/licenses/> | ||
µCNC is distributed WITHOUT ANY WARRANTY; | ||
Also without the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
See the GNU General Public License for more details. | ||
*/ | ||
|
||
#include "../../cnc.h" | ||
|
||
#if (KINEMATIC == KINEMATIC_DUMMY) | ||
|
||
void kinematics_init(void) | ||
{ | ||
} | ||
|
||
void kinematics_apply_inverse(float *axis, int32_t *steps) | ||
{ | ||
} | ||
|
||
void kinematics_apply_forward(int32_t *steps, float *axis) | ||
{ | ||
} | ||
|
||
uint8_t kinematics_home(void) | ||
{ | ||
return STATUS_OK; | ||
} | ||
|
||
bool kinematics_check_boundaries(float *axis) | ||
{ | ||
return true; | ||
} | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* | ||
Name: kinematic_dummy.h | ||
Description: Custom kinematics definitions for a dummy kinematics | ||
Copyright: Copyright (c) João Martins | ||
Author: João Martins | ||
Date: 01-03-2025 | ||
µCNC is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. Please see <http://www.gnu.org/licenses/> | ||
µCNC is distributed WITHOUT ANY WARRANTY; | ||
Also without the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
See the GNU General Public License for more details. | ||
*/ | ||
|
||
#ifndef KINEMATIC_DUMMY_H | ||
#define KINEMATIC_DUMMY_H | ||
|
||
#ifdef __cplusplus | ||
extern "C" | ||
{ | ||
#endif | ||
|
||
#define KINEMATIC_TYPE_STR "DMY" | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.