I’m writing some software to make my Arduino control a 3 axis cartesian bot (think CNC machine). Anyway, here’s the basic setup that is causing me problems:
I have 3 classes:
- RepStepper (my version of the stepper class)
i want the LinearAxis class to have a RepStepper instance and two LimitSwitch instances. I’m getting this error:
LinearAxis.h:18: error: ‘RepStepper’ does not name a type
LinearAxis.h:20: error: ‘LimitSwitch’ does not name a type
LinearAxis.h:21: error: ‘LimitSwitch’ does not name a type
I’m somewhat inexperienced when it comes to C++, but I have tons of experience programming PHP and OO design, so i’m guessing its some sort of syntactical thing I’m missing.
the code is all located here: http://reprap.svn.sourceforge.net/viewvc/reprap/trunk/users/hoeken/arduino/
the sketch is located here: http://reprap.svn.sourceforge.net/viewvc/reprap/trunk/users/hoeken/arduino/firmware/HoekensCustom/
thanks in advance for your help.