No longer skip first line in gathering file, since XPS only puts out exact number of requested pulses now; the readback positions are now the positions at the start of each pixel, not the end

This commit is contained in:
MarkRivers
2010-02-18 22:20:28 +00:00
parent f987b09d4c
commit 2bc018d1e3
+8 -3
View File
@@ -1202,9 +1202,14 @@ static void readGathering(SS_ID ssId, struct UserVar *pVar)
fgets (buffer, MAX_GATHERING_STRING, gatheringFile);
}
/* The next line is the motor positions at the start of the trajectory element
* where pulses began to be output. Skip this line because this pulse just
* started the MCS counting, there are no data yet. */
fgets (buffer, MAX_GATHERING_STRING, gatheringFile);
* where pulses began to be output.
* We used to skip this line because this pulse just
* started the MCS counting, there are no data yet.
* But that required the XPS to output more than the requested number of
* output pulses, which is undesireable. The SIS3801 can be configured to
* start counting before receiving the first input pulse, which should
* now be done. */
/* fgets (buffer, MAX_GATHERING_STRING, gatheringFile); */
for (i=0; i<pVar->npulses; i++) {
for (j=0; j<pVar->numAxes; j++) {