From Electronics\Hexapod\Arduino sketches 2011-2012\hexapodV3 (backup 2012-07-09).
42 lines
332 B
C++
42 lines
332 B
C++
// SerD.h
|
|
// V3.0
|
|
|
|
#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
|
|
|
|
|
|
|