Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
imagej-elphel
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Elphel
imagej-elphel
Commits
d9ef3617
Commit
d9ef3617
authored
Sep 24, 2014
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modified temp scan
parent
447a735d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
Aberration_Calibration.java
src/main/java/Aberration_Calibration.java
+15
-1
No files found.
src/main/java/Aberration_Calibration.java
View file @
d9ef3617
...
...
@@ -5383,6 +5383,13 @@ if (MORE_BUTTONS) {
stateEndTime
=
startTime
+(
long
)
(
6
E10
*
FOCUS_MEASUREMENT_PARAMETERS
.
powerControlHeaterOnMinutes
);
}
int
scanState
=(!
modeAverage
&&
FOCUS_MEASUREMENT_PARAMETERS
.
powerControlEnable
)?
1
:-
1
;
if
(
scanState
>=
0
){
endTime
=
startTime
+(
long
)
(
6
E10
*(
FOCUS_MEASUREMENT_PARAMETERS
.
powerControlHeaterOnMinutes
+
FOCUS_MEASUREMENT_PARAMETERS
.
powerControlNeitherOnMinutes
+
FOCUS_MEASUREMENT_PARAMETERS
.
powerControlFanOnMinutes
));
}
String
[]
stateNames
={
"IDLE"
,
"HEATING"
,
"WAITING"
,
"COOLING"
,
"FINISHED"
};
while
(
System
.
nanoTime
()<
endTime
){
moveAndMaybeProbe
(
true
,
// just move, not probe
...
...
@@ -5417,7 +5424,6 @@ if (MORE_BUTTONS) {
if
(
secondsLeft
<
0
)
secondsLeft
=
0
;
long
secondsLeftState
=(
long
)
(
0.000000001
*(
stateEndTime
-
System
.
nanoTime
()));
if
(
secondsLeftState
<
0
)
secondsLeftState
=
0
;
if
(
MASTER_DEBUG_LEVEL
>
0
)
System
.
out
.
println
(
" Measured "
+
runs
+
", "
+
secondsLeftState
+
" seconds left ("
+
secondsLeft
+
")"
);
boolean
timerOver
=(
System
.
nanoTime
()>=
stateEndTime
)
||
((
scanState
==
1
)
&&
(
FOCUS_MEASUREMENT_PARAMETERS
.
sensorTemperature
>=
FOCUS_MEASUREMENT_PARAMETERS
.
powerControlMaximalTemperature
));
...
...
@@ -5438,6 +5444,14 @@ if (MORE_BUTTONS) {
}
// nothing specific is needed for case 4 - it will end anyway
}
if
(
MASTER_DEBUG_LEVEL
>
0
)
{
if
(
scanState
>=
0
){
System
.
out
.
println
(
" Measured "
+
runs
+
", state="
+
stateNames
[
scanState
]+
", t="
+
FOCUS_MEASUREMENT_PARAMETERS
.
sensorTemperature
+
"C, "
+
secondsLeftState
+
" seconds left ("
+
secondsLeft
+
")"
);
}
else
{
System
.
out
.
println
(
" Measured "
+
runs
+
", t="
+
FOCUS_MEASUREMENT_PARAMETERS
.
sensorTemperature
+
"C, "
+
secondsLeftState
+
" seconds left "
);
}
}
}
if
(!
modeAverage
)
{
if
(
DEBUG_LEVEL
>
0
)
System
.
out
.
println
(
"Turning both heater and fan off"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment