Edit Marlin for Polar Coordinates October 03, 2022 05:51PM |
Registered: 2 years ago Posts: 4 |
Re: Edit Marlin for Polar Coordinates October 04, 2022 01:49PM |
Registered: 10 years ago Posts: 14,685 |
Re: Edit Marlin for Polar Coordinates October 04, 2022 05:35PM |
Registered: 4 years ago Posts: 93 |
void forward_kinematics(const_float_t a, const_float_t b) { cartes.x = scara_offset.x + cos(RADIANS(a)) * b; cartes.y = scara_offset.y + sin(RADIANS(a)) * b; } void inverse_kinematics(const xyz_pos_t &raw) { const float x = raw.x - scara_offset.x, y = raw.y - scara_offset.y; delta.set(DEGREES(ATAN2(y, x)), HYPOT2(x, y)); }
Re: Edit Marlin for Polar Coordinates September 18, 2023 02:32PM |
Registered: 2 years ago Posts: 7 |