Changeset 8871 for trunk/MagicSoft/Cosy/main
- Timestamp:
- 02/22/08 11:44:53 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/main/MTracking.cc
r8869 r8871 222 222 const Float_t maxtrack = 0.1; 223 223 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())); 227 227 gLog << warn << "Warning: Azimuth speed limit (" << maxtrack*100 << "%) exceeded (" << fabs(vt->Az()) << " > " << maxtrack*vraz << ")... limited." << endl; 228 228 gLog << "Vcalc: " << vcalc.Zd() << " " << vcalc.Az() << "re/min" <<endl; 229 229 rc=kTRUE; 230 230 } 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())); 234 234 gLog << warn << "Warning: Altitude speed limit (" << maxtrack*100 << "%) exceeded (" << fabs(vt->Zd()) <<" > " << maxtrack*vrzd << ")... limited." << endl; 235 235 gLog << "Vcalc: " << vcalc.Zd() << " " << vcalc.Az() << "re/min" <<endl; … … 485 485 // believing the Macs manual '/4' shouldn't be necessary, but it is. 486 486 // 487 ZdAz vt = v /4; //[re'/min]487 ZdAz vt = v; //[re'/min] 488 488 //lout << " " << vt.Zd() << " " << vt.Az() << " "; 489 489 vt.Round(); … … 511 511 // Now do 'unnecessary' things (timing) 512 512 // 513 fCosy->fVelocity = vt *4/fCosy->kGear; // [U_mot/min]513 fCosy->fVelocity = vt/fCosy->kGear; // [U_mot/min] 514 514 // *OLD* fVelocity = vt/kGearRatio2*4; 515 515
Note:
See TracChangeset
for help on using the changeset viewer.