Changeset 18379
- Timestamp:
- 11/12/15 19:44:58 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/drivectrl.cc
r18363 r18379 1314 1314 bool IsBlocked() const 1315 1315 { 1316 return (fStatusSys& 0x10)==0 || (fStatusSys&kManualMode);1316 return (fStatusSys&kEmergencyOk)==0 || (fStatusSys&kManualMode); 1317 1317 } 1318 1318 … … 2468 2468 // a drive goes below the RF state during operation without 2469 2469 // a warning or error message. 2470 if (fDrive.IsOnline() && fDrive.IsBlocked()) 2471 return State::kBlocked; 2472 2470 2473 if (fDrive.IsOnline() && !fDrive.IsReady()) 2471 2474 return State::kAvailable; 2472 2473 if (fDrive.IsOnline() && fDrive.IsBlocked())2474 return State::kBlocked;2475 2475 2476 2476 // This is the case as soon as the init commands were send … … 2648 2648 "Connected to SPS and to IndraDrives, but at least one drive not in RF"); 2649 2649 T::AddStateName(State::kBlocked, "Blocked", 2650 "Drive system is blocked by manual operation or a n releasedemergeny button");2650 "Drive system is blocked by manual operation or a pressed emergeny button"); 2651 2651 T::AddStateName(State::kArmed, "Armed", 2652 2652 "Connected to SPS and IndraDrives in RF, but not yet initialized"); … … 2762 2762 ("Park the telescope"); 2763 2763 2764 T::AddEvent("STOP") 2764 T::AddEvent("STOP")(State::kUnavailable)(State::kAvailable)(State::kArmed)(State::kInitialized)(State::kStopping)(State::kParking)(State::kMoving)(State::kTracking)(State::kOnTrack)(State::kPositioningFailed)(State::kAllowedRangeExceeded) 2765 2765 (bind(&StateMachineDrive::StopMovement, this)) 2766 2766 ("Stop any kind of movement.");
Note:
See TracChangeset
for help on using the changeset viewer.