- Timestamp:
- 12/10/15 11:06:17 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/drivectrl.cc
r18382 r18387 2171 2171 } 2172 2172 2173 int ResetError() 2174 { 2175 const int rc = CheckState(); 2176 return rc>0 ? rc : T::GetCurrentState(); 2177 } 2178 2173 2179 // --------------------- Others --------------------- 2174 2180 … … 2508 2514 { 2509 2515 const Time now; 2510 if (now>fSunRise) 2511 { 2512 if (T::GetCurrentState()==State::kParking) 2513 return State::kParking; 2514 2516 if (now>fSunRise && T::GetCurrentState()!=State::kParking) 2517 { 2515 2518 if (T::GetCurrentState()>State::kLocked && T::GetCurrentState()!=StateMachineImp::kError) 2516 2519 return Park(); … … 2788 2791 ("Park the telescope"); 2789 2792 2790 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)2793 T::AddEvent("STOP")(State::kUnavailable)(State::kAvailable)(State::kArmed)(State::kInitialized)(State::kStopping)(State::kParking)(State::kMoving)(State::kTracking)(State::kOnTrack) 2791 2794 (bind(&StateMachineDrive::StopMovement, this)) 2792 2795 ("Stop any kind of movement."); 2796 2797 T::AddEvent("RESET", State::kPositioningFailed, State::kAllowedRangeExceeded) 2798 (bind(&StateMachineDrive::ResetError, this)) 2799 ("Acknoledge an internal error (PositioningFailed, AllowedRangeExceeded)"); 2793 2800 2794 2801 T::AddEvent("TPOINT", State::kOnTrack)
Note:
See TracChangeset
for help on using the changeset viewer.