Changeset 18364 for trunk/FACT++
- Timestamp:
- 11/07/15 18:42:15 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/smartfact.cc
r18359 r18364 2740 2740 2741 2741 // ------------------ Drive ----------------- 2742 if (fDimDNS.online() && fDimDriveControl.state()>=Drive::State::k Armed) // Armed, Moving, Tracking, OnTrack, Error2742 if (fDimDNS.online() && fDimDriveControl.state()>=Drive::State::kInitialized) // Armed, Moving, Tracking, OnTrack, Error 2743 2743 { 2744 2744 const uint32_t dev = !fDriveControlTrackingDevHist.empty() ? round(fDriveControlTrackingDevHist.back()) : 0; 2745 2745 const State rc = fDimDriveControl.description(); 2746 2746 string col = HTML::kGreen; 2747 if (fDimDriveControl.state()==Drive::State::kMoving) // Moving 2747 if (fDimDriveControl.state()==Drive::State::kInitialized) // Armed 2748 col = HTML::kWhite; 2749 if (fDimDriveControl.state()>Drive::State::kInitialized && // Moving 2750 fDimDriveControl.state()<Drive::State::kTracking) 2748 2751 col = HTML::kBlue; 2749 if (fDimDriveControl.state()==Drive::State::kArmed) // Armed 2750 col = HTML::kWhite; 2751 if (fDimDriveControl.state()==Drive::State::kTracking || fDimDriveControl.state()==Drive::State::kOnTrack) // Tracking 2752 if (fDimDriveControl.state()==Drive::State::kTracking || // Tracking 2753 fDimDriveControl.state()==Drive::State::kOnTrack) 2752 2754 { 2753 2755 if (dev>60) // ~1.5mm … … 2756 2758 col = HTML::kRed; 2757 2759 } 2758 if (fDimDriveControl.state() ==0x100)2760 if (fDimDriveControl.state()>0xff) 2759 2761 col = HTML::kRed; 2760 2762 out << col << '\t'; … … 2764 2766 out << fDriveControlPointingZd << "°"; 2765 2767 out << setprecision(2); 2766 if (fDimDriveControl.state()==Drive::State::kTracking || fDimDriveControl.state()==Drive::State::kOnTrack) 2768 if (fDimDriveControl.state()==Drive::State::kTracking || 2769 fDimDriveControl.state()==Drive::State::kOnTrack) // Tracking 2767 2770 { 2768 2771 out << " ± " << dev << '"'; … … 2770 2773 out << " [" << fDriveControlSourceName << ']'; 2771 2774 } 2772 if (fDimDriveControl.state()==Drive::State::kMoving) 2775 if (fDimDriveControl.state()>Drive::State::kInitialized && // Moving 2776 fDimDriveControl.state()<Drive::State::kTracking) 2773 2777 out << " ⟳"; 2774 2778 out << setprecision(3); … … 2782 2786 { 2783 2787 out << " ☼"; 2784 if (fDimDriveControl.state()<Drive::State::k Armed)2788 if (fDimDriveControl.state()<Drive::State::kInitialized) 2785 2789 out << " [" << fSun.fSetCivil.MinutesTo() << "↓]"; 2786 2790 } … … 2789 2793 { 2790 2794 out << " ☾"; 2791 if (fDimDriveControl.state()<Drive::State::k Armed)2795 if (fDimDriveControl.state()<Drive::State::kInitialized) 2792 2796 out << " [" << fMoon.disk << "%]"; 2793 2797 } 2794 2798 } 2795 if (fDimDNS.online() && fDimDriveControl.state() ==0x100)2799 if (fDimDNS.online() && fDimDriveControl.state()>0xff) 2796 2800 out << " <ERR>"; 2797 2801 if (fDimDNS.online() && fDimDriveControl.state()==Drive::State::kLocked)
Note:
See TracChangeset
for help on using the changeset viewer.