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
f54815de
Commit
f54815de
authored
Oct 20, 2014
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improving manual goniometer control
parent
7c971fec
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
CalibrationHardwareInterface.java
src/main/java/CalibrationHardwareInterface.java
+4
-1
No files found.
src/main/java/CalibrationHardwareInterface.java
View file @
f54815de
...
...
@@ -2602,7 +2602,10 @@ public class CalibrationHardwareInterface {
this
.
targetPosition
[
motorNumber
]=
position
;
this
.
nanoReferenceTime
=
System
.
nanoTime
();
this
.
referencePosition
=
this
.
curpos
.
clone
();
commandElphel10364Motors
(
"http://"
+
this
.
ipAddress
+
"/10364.php?m"
+(
motorNumber
+
1
)+
"="
+
this
.
targetPosition
[
motorNumber
]+
"&enable"
);
// commandElphel10364Motors("http://"+this.ipAddress+"/10364.php?m"+(motorNumber+1)+"="+this.targetPosition[motorNumber]+"&enable");
// set, wait, enable (to avoid continuing "old" movement that was aborted by disable
commandElphel10364Motors
(
"http://"
+
this
.
ipAddress
+
"/10364.php?m"
+(
motorNumber
+
1
)+
"="
+
this
.
targetPosition
[
motorNumber
]+
"sleep=1"
);
enableMotors
(
true
);
nanoETA
=
System
.
nanoTime
()+((
long
)(
1
E9
*(
Math
.
abs
(
this
.
targetPosition
[
motorNumber
]-
this
.
curpos
[
motorNumber
])*(
this
.
coefficientETA
/
this
.
stepsPerSecond
))));
return
true
;
}
...
...
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