Files
hexapod-robot/2011-firefly-mega-ssc32/firmware/2012-behaviours-wip/FireFly/Gedrags_Classen.cpp
T

88 lines
1.3 KiB
C++
Raw Normal View History

//Gedrags classen,
#ifndef GCC
#define GCC
#include "SerD.h"
// LAYOUT
// _U_
// 0==/ \==3
// >***<
// 1===|---|===4
// >***<
// 2==\___/==5
class DataObject
{
public:
SerD S0;
SerD S1;
SerD S2;
SerD S3;
SerD S4;
SerD S5;
DataObject& operator() (SerD s0, SerD s1, SerD s2, SerD s3, SerD s4, SerD s5)
{
S0 = s0;
S1 = s1;
S2 = s2;
S3 = s3;
S4 = s4;
S5 = s5;
}
DataObject& operator() ( int a1, int a2, int a3,
int b1, int b2, int b3,
int c1, int c2, int c3,
int d1, int d2, int d3,
int e1, int e2, int e3,
int f1, int f2, int f3)
{
S0(a1, a2, a3);
S1(b1, b2, b3);
S2(c1, c2, c3);
S3(d1, d2, d3);
S4(e1, e2, e3);
S5(f1, f2, f3);
}
};
class WalkForward //Direction
{
private:
DataObject LoopPatroon[8];
DataObject HuidigePositie;
//Startup VARIABLES
void init()
{
/*LoopPatroon.S0[0][0](, , );
LoopPatroon.S1[0][1](, , );
LoopPatroon.S3[0][2](, , );
LoopPatroon.S4[0][3](, , );
LoopPatroon.S5[0][4](, , );
LoopPatroon.S6[0][5](, , );*/
LoopPatroon[0](0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
}
public:
void Run()
{
//Start runnning code until exit or expection raises.
}
};
#endif