Changeset 12359 for trunk/FACT++
- Timestamp:
- 11/02/11 05:34:46 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/gui/FactGui.h
r12341 r12359 2736 2736 2737 2737 // FIXME: Display Overcurrent 2738 dat[i] = abs(ptr[entry.hv()])*5000./4096; 2738 //dat[i] = abs(ptr[entry.hv()])*5000./4096; 2739 2740 dat[i] = fVecBiasVolt[entry.hv()]*90./4096 - (abs(ptr[entry.hv()])-1000)*5000./4096*5200*1e-6; 2739 2741 2740 2742 fBiasCamA->SetEnable(i, uint16_t(ptr[entry.hv()])!=0x8000); … … 2891 2893 2892 2894 fAuxWidget->setEnabled(enable); 2895 } 2896 2897 if (server=="DRIVE_CONTROL") 2898 { 2899 fStatusDriveLabel->setText(s.name.c_str()); 2900 fStatusDriveLabel->setToolTip(s.comment.c_str()); 2901 2902 bool enable = false; 2903 2904 if (s.index<1) // No Dim connection 2905 SetLedColor(fStatusDriveLed, kLedGray, time); 2906 if (s.index==1) // Dim connection / No connection to cosy 2907 SetLedColor(fStatusDriveLed, kLedRed, time); 2908 if (s.index==2 || s.index==3) // Not Ready 2909 SetLedColor(fStatusDriveLed, kLedGreenBar, time); 2910 if (s.index==4 || s.index==5) // Connected / Armed 2911 SetLedColor(fStatusDriveLed, kLedGreen, time); 2912 if (s.index==6) // Moving 2913 SetLedColor(fStatusDriveLed, kLedInProgress, time); 2914 if (s.index==7) // Tracking 2915 SetLedColor(fStatusDriveLed, kLedGreenCheck, time); 2916 if (s.index==99) // Error 2917 SetLedColor(fStatusDriveLed, kLedGreenWarn, time); 2893 2918 } 2894 2919
Note:
See TracChangeset
for help on using the changeset viewer.