Ignore:
Timestamp:
02/22/08 11:44:53 (17 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Cosy/main/MTracking.cc

    r8869 r8871  
    222222    const Float_t maxtrack = 0.1;
    223223
    224     if (fabs(vt->Az()) > maxtrack*vraz*4)
    225     {
    226         vt->Az(maxtrack*vraz*4*sgn(vcalc.Az()));
     224    if (fabs(vt->Az()) > maxtrack*vraz)
     225    {
     226        vt->Az(maxtrack*vraz*sgn(vcalc.Az()));
    227227        gLog << warn << "Warning: Azimuth speed limit (" << maxtrack*100 << "%) exceeded (" << fabs(vt->Az()) << " > " << maxtrack*vraz << ")... limited." << endl;
    228228        gLog << "Vcalc: " << vcalc.Zd() << " " << vcalc.Az() << "re/min" <<endl;
    229229        rc=kTRUE;
    230230    }
    231     if (fabs(vt->Zd()) > maxtrack*vrzd*4)
    232     {
    233         vt->Zd(maxtrack*vrzd*4*sgn(vcalc.Zd()));
     231    if (fabs(vt->Zd()) > maxtrack*vrzd)
     232    {
     233        vt->Zd(maxtrack*vrzd*sgn(vcalc.Zd()));
    234234        gLog << warn << "Warning: Altitude speed limit (" << maxtrack*100 << "%) exceeded (" << fabs(vt->Zd()) <<" > " << maxtrack*vrzd << ")... limited." << endl;
    235235        gLog << "Vcalc: " << vcalc.Zd() << " " << vcalc.Az() << "re/min" <<endl;
     
    485485        // believing the Macs manual '/4' shouldn't be necessary, but it is.
    486486        //
    487         ZdAz vt = v/4; //[re'/min]
     487        ZdAz vt = v; //[re'/min]
    488488        //lout << " " << vt.Zd() << " " << vt.Az() << " ";
    489489        vt.Round();
     
    511511        // Now do 'unnecessary' things (timing)
    512512        //
    513         fCosy->fVelocity = vt*4/fCosy->kGear; // [U_mot/min]
     513        fCosy->fVelocity = vt/fCosy->kGear; // [U_mot/min]
    514514        // *OLD* fVelocity = vt/kGearRatio2*4;
    515515
Note: See TracChangeset for help on using the changeset viewer.