Changeset 13933
- Timestamp:
- 05/26/12 22:55:53 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/drivectrl.cc
r13911 r13933 343 343 // Status 4: Tracking 344 344 if (status1==0) 345 status1 = 0x100 -3;345 status1 = 0x100; 346 346 347 347 const bool ready = (pdo3&0xef00ef)==0xef00ef; 348 348 if (!ready) 349 fState = 0;349 fState = Drive::State::kNotReady; 350 350 else 351 fState = status1==1 ? armed+1 : status1; 352 353 // 1: Not ready 354 // 2: Not armed 355 // 3: Armed 356 // 4: Moving 357 // 5: Tracking 358 // 99: Error 359 360 351 fState = status1==1 ? 352 Drive::State::kReady+armed : 353 Drive::State::kNotReady+status1; 354 355 // kDisconnected = 1, 356 // kConnected, 357 // kNotReady, 358 // kReady, 359 // kArmed, 360 // kMoving, 361 // kTracking, 361 362 362 363 // pdo3: … … 529 530 if (IsConnected() && fState<0) 530 531 return 2; 531 return fState +3;532 return fState; 532 533 } 533 534 };
Note:
See TracChangeset
for help on using the changeset viewer.