From 'hexapodV3 28-april-2012-Backup.rar'. Oud/ is the 2011 code it was based on.
40 lines
321 B
C++
40 lines
321 B
C++
//SerD.h
|
|
#ifndef SERD
|
|
#define SERD
|
|
|
|
class SerD
|
|
{
|
|
public:
|
|
|
|
//Coordinate system
|
|
int x;
|
|
int y;
|
|
int z;
|
|
|
|
//Angles
|
|
int o1;
|
|
int o2;
|
|
int o3;
|
|
|
|
//Timings
|
|
int t1;
|
|
int t2;
|
|
int t3;
|
|
|
|
//Input
|
|
SerD & operator() (int X, int Y, int Z)
|
|
{
|
|
x = X;
|
|
y = Y;
|
|
z = Z;
|
|
|
|
return *this;
|
|
}
|
|
|
|
};
|
|
|
|
#endif
|
|
|
|
|
|
|