shift a bunch of header stuff around
authorMichael Moon <triffid.hunter@gmail.com>
Sun, 26 Jan 2014 02:26:16 +0000 (13:26 +1100)
committerMichael Moon <triffid.hunter@gmail.com>
Sun, 26 Jan 2014 02:26:16 +0000 (13:26 +1100)
14 files changed:
src/libs/FPointer.h
src/libs/Kernel.h
src/libs/Module.h
src/libs/StepTicker.cpp
src/libs/StepTicker.h
src/libs/StepperMotor.cpp
src/libs/StepperMotor.h
src/modules/robot/Planner.cpp
src/modules/robot/Robot.cpp
src/modules/robot/Robot.h
src/modules/robot/Stepper.cpp
src/modules/robot/Stepper.h
src/modules/tools/extruder/Extruder.cpp
src/modules/tools/touchprobe/Touchprobe.cpp

index bec4243..f04278f 100644 (file)
@@ -19,9 +19,13 @@ THE SOFTWARE.
 
 #ifndef AJK_FPOINTER_H
 #define AJK_FPOINTER_H
+
 #ifndef NULL
 #define NULL 0
 #endif
+
+#include <cstdint>
+
 namespace AjK {
 
 class FPointerDummy;
index 4122c91..5ca1f24 100644 (file)
@@ -21,6 +21,7 @@
 #include "modules/robot/Planner.h"
 #include "modules/robot/Robot.h"
 #include "modules/robot/Stepper.h"
+#include "mri.h"
 #include <array>
 
 #define THEKERNEL Kernel::instance
index 7abeee6..98d81a5 100644 (file)
@@ -38,7 +38,6 @@ class Module {
         #define EVENT(name, func) virtual void func (void*);
         #include "Event.h"
         #undef EVENT
-        Kernel * kernel;
 };
 
 #endif
index 0a1b51d..bebb600 100644 (file)
@@ -6,13 +6,16 @@
 */
 
 
+#include "StepTicker.h"
 
 using namespace std;
 #include <vector>
+
 #include "libs/nuts_bolts.h"
 #include "libs/Module.h"
 #include "libs/Kernel.h"
-#include "StepTicker.h"
+#include "StepperMotor.h"
+
 #include "system_LPC17xx.h" // mbed.h lib
 
 #include <mri.h>
index ceedc1e..908d128 100644 (file)
 
 using namespace std;
 #include <vector>
-#include "libs/nuts_bolts.h"
+
 #include "libs/Module.h"
-#include "libs/Kernel.h"
-#include "libs/StepperMotor.h"
+
+class StepperMotor;
 
 class StepTicker{
     public:
index f031f04..5954a5d 100644 (file)
@@ -4,9 +4,9 @@
       Smoothie is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
       You should have received a copy of the GNU General Public License along with Smoothie. If not, see <http://www.gnu.org/licenses/>.
 */
-#include "mri.h"
-#include "libs/Kernel.h"
 #include "StepperMotor.h"
+
+#include "Kernel.h"
 #include "MRI_Hooks.h"
 
 // A StepperMotor represents an actual stepper motor. It is used to generate steps that move the actual motor at a given speed
index 1eddd4a..6e654d7 100644 (file)
@@ -8,10 +8,11 @@
 #ifndef STEPPERMOTOR_H
 #define STEPPERMOTOR_H
 
-#include "libs/Kernel.h"
 #include "libs/Hook.h"
+#include "Pin.h"
 
 class StepTicker;
+class Hook;
 
 class StepperMotor {
     public:
index c1e7048..0baabee 100644 (file)
@@ -17,6 +17,7 @@ using namespace std;
 #include "Block.h"
 #include "Planner.h"
 #include "Conveyor.h"
+#include "StepperMotor.h"
 
 #define acceleration_checksum          CHECKSUM("acceleration")
 #define max_jerk_checksum              CHECKSUM("max_jerk")
index 78e2e6c..d7d1936 100644 (file)
@@ -7,16 +7,18 @@
 
 #include "libs/Module.h"
 #include "libs/Kernel.h"
+
+#include <math.h>
 #include <string>
 using std::string;
-#include <math.h>
+
 #include "Planner.h"
 #include "Conveyor.h"
 #include "Robot.h"
-#include "libs/nuts_bolts.h"
-#include "libs/Pin.h"
-#include "libs/StepperMotor.h"
-#include "../communication/utils/Gcode.h"
+#include "nuts_bolts.h"
+#include "Pin.h"
+#include "StepperMotor.h"
+#include "Gcode.h"
 #include "PublicDataRequest.h"
 #include "arm_solutions/BaseSolution.h"
 #include "arm_solutions/CartesianSolution.h"
index 893c264..debac58 100644 (file)
 #include <string>
 using std::string;
 #include "libs/Module.h"
-#include "libs/Kernel.h"
-#include "../communication/utils/Gcode.h"
-#include "arm_solutions/BaseSolution.h"
-#include "Planner.h"
-#include "libs/Pin.h"
-#include "libs/StepperMotor.h"
 #include "RobotPublicAccess.h"
 
 #define NEXT_ACTION_DEFAULT 0
@@ -40,7 +34,9 @@ using std::string;
 #define SPINDLE_DIRECTION_CW 0
 #define SPINDLE_DIRECTION_CCW 1
 
-
+class Gcode;
+class BaseSolution;
+class StepperMotor;
 
 class Robot : public Module {
     public:
index 2864e1f..3ae8968 100644 (file)
@@ -5,15 +5,20 @@
       You should have received a copy of the GNU General Public License along with Smoothie. If not, see <http://www.gnu.org/licenses/>.
 */
 
+#include "Stepper.h"
+
 #include "libs/Module.h"
 #include "libs/Kernel.h"
-#include "Stepper.h"
 #include "Planner.h"
 #include "Conveyor.h"
+#include "StepperMotor.h"
+
 #include <vector>
 using namespace std;
+
 #include "libs/nuts_bolts.h"
 #include "libs/Hook.h"
+
 #include <mri.h>
 
 
index ed9489f..dbe975d 100644 (file)
@@ -7,10 +7,12 @@
 
 #ifndef STEPPER_H
 #define STEPPER_H
+
 #include "libs/Module.h"
-#include "libs/Kernel.h"
-#include "Planner.h"
-#include "Block.h"
+
+class Block;
+class Hook;
+class StepperMotor;
 
 #define microseconds_per_step_pulse_checksum        CHECKSUM("microseconds_per_step_pulse")
 #define acceleration_ticks_per_second_checksum      CHECKSUM("acceleration_ticks_per_second")
index ee6e31a..7105f6b 100644 (file)
@@ -5,11 +5,15 @@
     You should have received a copy of the GNU General Public License along with Smoothie. If not, see <http://www.gnu.org/licenses/>.
 */
 
+#include "Extruder.h"
+
 #include "libs/Module.h"
 #include "libs/Kernel.h"
+
 #include "modules/robot/Conveyor.h"
 #include "modules/robot/Block.h"
-#include "modules/tools/extruder/Extruder.h"
+#include "StepperMotor.h"
+
 #include <mri.h>
 
 #define extruder_module_enable_checksum      CHECKSUM("extruder_module_enable")
index 41173b7..67d4921 100644 (file)
@@ -7,6 +7,8 @@
 
 #include "Touchprobe.h"
 
+#include "BaseSolution.h"
+
 void Touchprobe::on_module_loaded() {
     // if the module is disabled -> do nothing
     this->enabled = THEKERNEL->config->value( touchprobe_enable_checksum )->by_default(false)->as_bool();