Changeset 1953 for trunk/MagicSoft/Cosy/testse.cc
- Timestamp:
- 04/12/03 19:06:27 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/testse.cc
r1742 r1953 1 1 #include <iostream.h> 2 /*#include <iomanip.h>3 #include <fstream.h>4 5 #include <TROOT.h>6 #include <TSystem.h>7 #include <TApplication.h>8 9 */10 2 11 3 #include "network.h" … … 21 13 // gLog.EnableOutputDevice(MLog::eStdout); 22 14 23 cout << "Creating Network..." << endl; 24 const int baud = 500; 15 cout << endl; 16 cout << "Usage: testse [nodeid [[speed]" << endl; 17 cout << endl; 18 const int baud = argc>2 ? atoi(argv[2]) : 500; 19 cout << "Creating Network (" << baud << "bps)..." << endl; 25 20 Network net("/dev/dpm_00", baud); 26 21 27 cout << "Creating SE..." << endl; 28 const int nodeid = 6; 22 const int nodeid = argc>1 ? atoi(argv[1]) : 16; 23 24 cout << "Creating SE #" << nodeid << "..." << endl; 29 25 ShaftEncoder se(nodeid, "SE/Zd1"); 30 26
Note:
See TracChangeset
for help on using the changeset viewer.