Ignore:
Timestamp:
08/17/01 15:12:57 (23 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Cosy/devdrv
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Cosy/devdrv/macs.cc

    r910 r912  
    419419double Macs::GetTime()
    420420{
    421     return fPosTime.GetTime();
     421    return fPosTime.Now();
    422422}
    423423
    424424double Macs::GetMjd()
    425425{
    426     return fPosTime.GetMjd();
     426    return fPosTime.CalcMjd();
    427427}
    428428
    429429double Macs::GetPdoTime()
    430430{
    431     return fPdoTime.GetTime();
     431    return fPdoTime.Now();
    432432}
    433433
    434434double Macs::GetPdoMjd()
    435435{
    436     return fPdoTime.GetMjd();
     436    return fPdoTime.CalcMjd();
    437437}
    438438
  • trunk/MagicSoft/Cosy/devdrv/shaftencoder.cc

    r910 r912  
    3232    {
    3333    case 0x1000:
    34         cout << "Model: ";
     34        lout << "- Model: ";
    3535        switch (val&0xffff)
    3636        {
    3737        case 0x0196:
    38             cout << "Shaft Encoder  Type: ";
     38            lout << "Shaft Encoder  Type: ";
    3939            switch ((val>>16)&0xff)
    4040            {
    4141            case 0x01:
    42                 cout << "Singleturn" << endl;
     42                lout << "Singleturn" << endl;
    4343                return;
    4444            case 0x02:
    45                 cout << "Multiturn" << endl;
     45                lout << "Multiturn" << endl;
    4646                return;
    4747            default:
    48                 cout << "?" << endl;
     48                lout << "?" << endl;
    4949                return;
    5050            }
    5151        default:
    52             cout << "???" << endl;
     52            lout << "???" << endl;
    5353            return;
    5454        }
    5555    case 0x100b:
    56         cout << "Node ID: " << dec << val << endl;
     56        lout << "Node ID: " << dec << val << endl;
    5757        return;
    5858
    5959    case 0x6000:
    6060    case 0x6500:
    61         cout << "Counting: " << (val&1   ?"anti-clockwise":"clockwise") << "  ";
    62         cout << "HwTest: " <<   (val&2   ?"on":"off") << "  ";
    63         cout << "Scaling: " <<  (val&4   ?"on":"off") << "  ";
    64         cout << "Modulo: " <<   (val&4096?"on":"off") << endl;
     61        lout << "- Counting: " << (val&1   ?"anti-clockwise":"clockwise") << "  ";
     62        lout << "HwTest: " <<   (val&2   ?"on":"off") << "  ";
     63        lout << "Scaling: " <<  (val&4   ?"on":"off") << "  ";
     64        lout << "Modulo: " <<   (val&4096?"on":"off") << endl;
    6565
    6666    case 0x6001:
    67         cout << "Logical Ticks/Turn: " << dec << val << endl;
     67        lout << "- Logical Ticks/Revolution: " << dec << val << endl;
    6868        return;
    6969
    7070    case 0x6004:
    71         cout << "Position: " << dec << val << endl;
     71        lout << "- Position: " << dec << val << endl;
    7272        fPos  = val;
    7373        fTurn = 0;
     
    7676
    7777    case 0x6501:
    78         cout << "Phys. Ticks/Turn: " << dec << val << endl;
     78        lout << "- Phys. Ticks/Revolution: " << dec << val << endl;
    7979        fTicks = val;
    8080        return;
    8181
    8282    case 0x6502:
    83         cout << "Possible Turns: " << dec << val << endl;
     83        lout << "- Possible Turns: " << dec << val << endl;
    8484        fTurns = val ? val : 1; // Single Turn = Multiturn with one turn
    8585        return;
     
    209209double ShaftEncoder::GetTime()
    210210{
    211     return fTime.GetTime();
     211    return fTime.Now();
    212212}
    213213
    214214double ShaftEncoder::GetMjd()
    215215{
    216     return fTime.GetMjd();
     216    return fTime.CalcMjd();
    217217}
    218218
     
    228228    // Requesting and checking (FIXME) type of encoder
    229229    //
    230     lout << "- Requesting SDO 0x1000 of " << (int)GetId() << endl;
     230    lout << "- Requesting Hardware Type (SDO 0x1000) of " << (int)GetId() << endl;
    231231    RequestSDO(0x1000);
    232232    WaitForSdo(0x1000);
    233233
    234234    //
    235     // Read physical ticks per turn
    236     //
    237     lout << "- Requesting SDO 0x6501 of " << (int)GetId() << endl;
     235    // Read physical ticks per revolution
     236    //
     237    lout << "- Requesting physical ticks/revolution (SDO 0x6501) of " << (int)GetId() << endl;
    238238    RequestSDO(0x6501);
    239239    WaitForSdo(0x6501);
    240240
    241241    //
    242     // Read number of possible ticks per turn
    243     //
    244     lout << "- Requesting SDO 0x6502 of " << (int)GetId() << endl;
     242    // Read number of possible ticks per revolution
     243    //
     244    lout << "- Requesting possible ticks/revolution (SDO 0x6502) of " << (int)GetId() << endl;
    245245    RequestSDO(0x6502);
    246246    WaitForSdo(0x6502);
    247247
    248248    //
    249     // Set logic ticks per turn = physical ticks per turn => scale factor = 1
     249    // Set logic ticks/revolution = physical ticks/revolution => scale factor = 1
    250250    //
    251251    lout << "- Configuring SDO 0x6001 of " << (int)GetId() << endl;
Note: See TracChangeset for help on using the changeset viewer.