source: UH/SAMGAR/SAMGAR LIB/Trunk/TesterFiles/Test2.cpp @ 1706

Revision 121, 468 bytes checked in by KDucasse, 11 years ago (diff)

Folder and files for the to compile samgar modules

Line 
1#include <SamgarMainClass.h>
2using namespace std;
3
4
5int main() {
6
7        int ccc =0;
8Network yarp;
9SamgarModule MyFirstTest("Module2","behaviour","happy",run); // Cant have spaces or underscores
10MyFirstTest.AddPortS("num100");
11MyFirstTest.AddPortS("num200");
12
13
14  while( 1 )
15  {
16          Time::delay(1);
17          printf("sending data \n");
18          MyFirstTest.SendIntData("num100",ccc++);
19          if(ccc>100){ccc=0;}
20          MyFirstTest.SucceedFail(true,888);
21  }
22
23  return 0;
24}
Note: See TracBrowser for help on using the repository browser.