Cosmetic tidying.

This commit is contained in:
reprappro 2012-12-09 21:02:20 +00:00
parent 0e3c762f99
commit a56a0321c6
4 changed files with 20 additions and 10 deletions

2
Heat.h
View file

@ -37,7 +37,7 @@ class Heat
public: public:
Heat(); Heat();
ControlHeaters(); void ControlHeaters();
private: private:

View file

@ -119,12 +119,12 @@ class Platform
// Communications and data storage; opening something unsupported returns -1. // Communications and data storage; opening something unsupported returns -1.
char* FileList() // Returns a comma-separated?? list of all the files on local storage (for example on an SD card). char* FileList(); // Returns a comma-separated?? list of all the files on local storage (for example on an SD card).
int OpenFile(char* fileName, boolean write); // Open a local file (for example on an SD card). int OpenFile(char* fileName, bool write); // Open a local file (for example on an SD card).
int OpenHost(); // Open a pseudofile that gives read/write communications to the host computer. int OpenHost(); // Open a pseudofile that gives read/write communications to the host computer.
int OpenMessage(); // Open a pseudofile that writes to the message system. Messages may simply flash an LED, or, int OpenMessage(); // Open a pseudofile that writes to the message system. Messages may simply flash an LED, or,
// say, display the messages on an LCD. This may also transmit the messages to the host. // say, display the messages on an LCD. This may also transmit the messages to the host.
int OpenStore(boolean write); // Non-volatile non-removable storage such as EEPROM. int OpenStore(bool write); // Non-volatile non-removable storage such as EEPROM.
void Read(int file, char* string); // Read printable characters from a file into the string up to the next \n or \r, void Read(int file, char* string); // Read printable characters from a file into the string up to the next \n or \r,
// which are not returned. Return string[0] == 0 if there's nothing there. // which are not returned. Return string[0] == 0 if there's nothing there.
void Write(int file, char* string); // Write the 0-terminated string to a file. End the string with \n or \r if you want them. void Write(int file, char* string); // Write the 0-terminated string to a file. End the string with \n or \r if you want them.
@ -132,7 +132,7 @@ class Platform
// Movement // Movement
void setDirection(int drive, boolean forwards); void setDirection(int drive, bool forwards);
void step(int drive); void step(int drive);
void disable(int drive); // There is no drive enable; drives get enabled automatically the first time they are used. void disable(int drive); // There is no drive enable; drives get enabled automatically the first time they are used.
void home(int axis); void home(int axis);
@ -146,14 +146,14 @@ class Platform
private: private:
/*
int8_t stepPins[DRIVES] = STEP_PINS; int8_t stepPins[DRIVES] = STEP_PINS;
int8_t directionPins[DRIVES] = DIRECTION_PINS; int8_t directionPins[DRIVES] = DIRECTION_PINS;
#define ENABLE_PINS {9, 10,11,12} #define ENABLE_PINS {9, 10,11,12}
#define LOW_STOP_PINS {13, 14, 15, 16} #define LOW_STOP_PINS {13, 14, 15, 16}
#define HIGH_STOP_PINS {17, 18, 19, 20} #define HIGH_STOP_PINS {17, 18, 19, 20}
*/
}; };
extern "C" extern "C"

View file

@ -37,8 +37,8 @@ class RepRap
public: public:
RepRap(); RepRap();
init(); void init();
spin(); void spin();
private: private:

View file

@ -22,7 +22,7 @@ General design principles:
* Don't abhor floats - they work fast enough if you're clever, * Don't abhor floats - they work fast enough if you're clever,
* Don't avoid arrays and structs/classes, * Don't avoid arrays and structs/classes,
* Don't avoid pointers, * Don't avoid pointers,
* Use operator and function overloading where appropriate, particulary for vector algebra. * Use operator and function overloading where appropriate, particularly for vector algebra.
----------------------------------------------------------------------------------------------------- -----------------------------------------------------------------------------------------------------
@ -42,6 +42,16 @@ Licence: GPL
RepRap* reprap; RepRap* reprap;
void RepRap::init()
{
}
void RepRap::spin()
{
}