Ignore:
Timestamp:
04/12/03 19:06:27 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Cosy/testse.cc

    r1742 r1953  
    11#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 */
    102
    113#include "network.h"
     
    2113//    gLog.EnableOutputDevice(MLog::eStdout);
    2214
    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;
    2520    Network net("/dev/dpm_00", baud);
    2621
    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;
    2925    ShaftEncoder se(nodeid, "SE/Zd1");
    3026
Note: See TracChangeset for help on using the changeset viewer.