Skip to content

Commit

Permalink
fix issue that temperature not changed during T scans
Browse files Browse the repository at this point in the history
  • Loading branch information
nxi committed Oct 17, 2023
1 parent 972d0b7 commit 16b901b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

public class CollectionHelper {

public static final String NAME_EXPOSURE_TIME = "gumtree.koala.exposureTime";
public static final String NAME_ERASURE_TIME = "gumtree.koala.erasureTime";
public static final String NAME_READING_TIME = "gumtree.koala.readingTime";
public static final String NAME_EXPIRATION_TIME = "gumtree.koala.collectionExp";
public static final String NAME_TEMP_START = "gumtree.koala.tempStart";
Expand All @@ -40,7 +40,7 @@ public class CollectionHelper {
private static final int CHECK_CYCLE = 50; // millisecond
private static final int FAIL_RETRY = 3;
public static final int READ_TIME = Integer.valueOf(System.getProperty(NAME_READING_TIME, "280"));
public static final int ERASE_TIME = Integer.valueOf(System.getProperty(NAME_EXPOSURE_TIME, "160"));
public static final int ERASE_TIME = Integer.valueOf(System.getProperty(NAME_ERASURE_TIME, "160"));

private static final Logger logger = LoggerFactory.getLogger(CollectionHelper.class);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ public static void driveTemperature(float value)
if (targetController instanceof DriveableController) {
logger.warn(String.format("drive %s %f", targetController.getDeviceId(), value));
try {
((DriveableController) targetController).setTarget(value);
((DriveableController) targetController).drive();
} catch (SicsException e) {
logger.error("failed to drive " + targetController.getDeviceId(), e);
Expand Down

0 comments on commit 16b901b

Please sign in to comment.