Files
school_archives/OSU SARL/Control Board Firmware/Pick And Plate/Driver Board Revision 1.1/AxisClass.h
Corwin Perren b300c76103 Added old firmware and pcb design files
These are all design documents that I thought I had lost. It's may make
me cringe, but it's still cool to use it to see how far I've come.
2016-05-12 20:04:43 -07:00

50 lines
725 B
C++

#ifndef AXIS_CLASS_H
#define AXIS_CLASS_H
const unsigned char Microstep[6][3] = {
{
0, 0, 0
}
,
{
1, 0, 0
}
,
{
0, 1, 0
}
,
{
1, 1, 0
}
,
{
0, 0, 1
}
,
{
1, 0, 1
}
};
class Axis {
private:
unsigned char p_Step;
unsigned char p_Dir;
unsigned char p_M0;
unsigned char p_M1;
unsigned char p_M2;
unsigned char p_Fault;
unsigned int DelVal;
public:
Axis (unsigned char AxisStep, unsigned char AxisDir, unsigned char AxisM0, unsigned char AxisM1, unsigned char AxisM2, unsigned char AxisFault);
void SetMicrostep(unsigned char Level);
void StepForward();
void StepBackward();
int SetRPM(int RPM);
void SetDelay(unsigned int delLen);
};
#endif