Changeset 18374
- Timestamp:
- 11/07/15 20:55:33 (9 years ago)
- Location:
- trunk/FACT++
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/smartfact.cc
r18366 r18374 1094 1094 int HandleDriveTracking(const EventImp &d) 1095 1095 { 1096 if (!CheckDataSize(d, "DriveControl:Tracking", 64))1096 if (!CheckDataSize(d, "DriveControl:Tracking", 96)) 1097 1097 return GetCurrentState(); 1098 1099 1098 1100 1099 1101 const double Ra = d.Get<double>(0*8); 1100 1102 const double Dec = d.Get<double>(1*8); 1101 const double Zd = d.Get<double>( 3*8);1102 const double Az = d.Get<double>( 4*8);1103 1104 const double dev = d.Get<double>( 7*8);1103 const double Zd = d.Get<double>(6*8); 1104 const double Az = d.Get<double>(7*8); 1105 1106 const double dev = d.Get<double>(11*8); 1105 1107 1106 1108 fDriveControlTrackingDevHist.push_back(dev); … … 1141 1143 int HandleDriveSource(const EventImp &d) 1142 1144 { 1143 if (!CheckDataSize(d, "DriveControl:Source", 7*4+2, true))1145 if (!CheckDataSize(d, "DriveControl:Source", 5*8+31)) 1144 1146 return GetCurrentState(); 1145 1147 1146 1148 const double *ptr = d.Ptr<double>(); 1147 1149 1148 const double ra = ptr[0]; // Ra[h] 1149 const double dec = ptr[1]; // Dec[deg] 1150 const double woff = ptr[4]; // Wobble offset [deg] 1151 const double wang = ptr[5]; // Wobble angle [deg] 1152 1153 fDriveControlSourceName = d.Ptr<char>(6*8); 1150 const double ra = ptr[0]; // Ra[h] 1151 const double dec = ptr[1]; // Dec[deg] 1152 const double woff = ptr[2]; // Wobble offset [deg] 1153 const double wang = ptr[3]; // Wobble angle [deg] 1154 const double period = ptr[4]; // Wobble angle [deg] 1155 1156 fDriveControlSourceName = d.Ptr<char>(5*8); 1154 1157 1155 1158 ostringstream out; … … 1163 1166 out << HTML::kWhite << '\t' << woff << '\n'; 1164 1167 out << HTML::kWhite << '\t' << wang << '\n'; 1168 out << HTML::kWhite << '\t' << period << '\n'; 1165 1169 1166 1170 ofstream(fPath+"/source.data") << out.str(); -
trunk/FACT++/www/smartfact/struct/source.page
r14623 r18374 5 5 tracking|Wobble offset|$0° 6 6 tracking|Wobble angle|$0° 7 tracking|Orbit period|$0min
Note:
See TracChangeset
for help on using the changeset viewer.