Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of Smoothie by
CartesianSolution.cpp
00001 #include "CartesianSolution.h" 00002 #include <math.h> 00003 00004 void CartesianSolution::cartesian_to_actuator( float cartesian_mm[], float actuator_mm[] ){ 00005 actuator_mm[ALPHA_STEPPER] = cartesian_mm[X_AXIS]; 00006 actuator_mm[BETA_STEPPER ] = cartesian_mm[Y_AXIS]; 00007 actuator_mm[GAMMA_STEPPER] = cartesian_mm[Z_AXIS]; 00008 } 00009 00010 void CartesianSolution::actuator_to_cartesian( float actuator_mm[], float cartesian_mm[] ){ 00011 cartesian_mm[ALPHA_STEPPER] = actuator_mm[X_AXIS]; 00012 cartesian_mm[BETA_STEPPER ] = actuator_mm[Y_AXIS]; 00013 cartesian_mm[GAMMA_STEPPER] = actuator_mm[Z_AXIS]; 00014 }
Generated on Tue Jul 12 2022 20:09:00 by
1.7.2
