Project

General

Profile

Statistics
| Revision:

root / trunk / src / java / org / lidar / api / Motion.java

History | View | Annotate | Download (4.2 KB)

1 9 andrej.cim
package org.lidar.api;
2
3
import javax.comm.SerialPort;
4
import org.lidar.Position;
5
import javax.jws.WebMethod;
6
import javax.jws.WebService;
7
import org.lidar.Config;
8
import org.lidar.Serial;
9
10
/**
11
 * Motion API
12
 * @author Andrej Cimpersek
13
 */
14
@WebService()
15
public class Motion extends Serial {
16
17 11 andrej.cim
    public Motion() {
18 9 andrej.cim
        super("motion");
19
        openPort();
20
    }
21
22
    /**
23
     * Sets parameters for next motor move
24
     * @param steps
25
     * @param freq
26
     */
27
    @WebMethod()
28 11 andrej.cim
    public void setMove0(int steps, float freq) {
29
    }
30 9 andrej.cim
31
    /**
32
     * Sets parameters for next motor move
33
     * @param steps
34
     * @param freq
35
     */
36
    @WebMethod()
37 11 andrej.cim
    public void setMove1(int steps, float freq) {
38
    }
39 9 andrej.cim
40
    /**
41
     * Moves motors according to set moves
42
     */
43
    @WebMethod()
44 11 andrej.cim
    public void run() {
45
    }
46 9 andrej.cim
47
    /**
48
     * Sets angular velocity in steps / sec
49
     * @param omega0
50
     */
51
    @WebMethod()
52 11 andrej.cim
    public void setInitialAngularVel0(float omega0) {
53
    }
54 9 andrej.cim
55
    /**
56
     * Sets angular velocity in steps / sec
57
     * @param omega0
58
     */
59
    @WebMethod()
60 11 andrej.cim
    public void setInitialAngularVel1(float omega0) {
61
    }
62 9 andrej.cim
63
    /**
64
     * Sets angular acceleration in steps / sec^2
65
     * @param accel
66
     */
67
    @WebMethod()
68 11 andrej.cim
    public void setAngularAcceleration0(float accel) {
69
    }
70 9 andrej.cim
71
    /**
72
     * Sets angular acceleration in steps / sec^2
73
     * @param accel
74
     */
75
    @WebMethod()
76 11 andrej.cim
    public void setAngularAcceleration1(float accel) {
77
    }
78 9 andrej.cim
79
    /**
80
     *
81
     * @param steps
82
     */
83
    @WebMethod()
84 11 andrej.cim
    public void setLackCorrection0(short steps) {
85
    }
86 9 andrej.cim
87
    /**
88
     *
89
     * @param steps
90
     */
91
    @WebMethod()
92 11 andrej.cim
    public void setLackCorrection1(short steps) {
93
    }
94 9 andrej.cim
95
    /**
96
     * Sets angular deceleration in steps / sec^2
97
     * @param decel
98
     */
99
    @WebMethod()
100 11 andrej.cim
    public void setAngularDeceleration0(float decel) {
101
    }
102 9 andrej.cim
103
    /**
104
     * Sets angular deceleration in steps / sec^2
105
     * @param decel
106
     */
107
    @WebMethod()
108 11 andrej.cim
    public void setAngularDeceleration1(float decel) {
109
    }
110 9 andrej.cim
111
    /**
112
     * Sets position for stepper 0
113
     * @param position
114
     */
115
    @WebMethod()
116 11 andrej.cim
    public void setPosition0(int position) {
117
    }
118 9 andrej.cim
119
    /**
120
     * Sets position for stepper 1
121
     * @param position
122
     */
123
    @WebMethod()
124 11 andrej.cim
    public void setPosition1(int position) {
125
    }
126 9 andrej.cim
127
    /**
128
     * Stops motor 0
129
     */
130
    @WebMethod()
131 11 andrej.cim
    public void stopMotor0() {
132
    }
133 9 andrej.cim
134
    /**
135
     * Stops motor 1
136
     */
137
    @WebMethod()
138 11 andrej.cim
    public void stopMotor1() {
139
    }
140 9 andrej.cim
141
    /**
142
     * Disables current on motor 0
143
     */
144
    @WebMethod()
145 11 andrej.cim
    public void setMotorOff0() {
146
    }
147 9 andrej.cim
148
    /**
149
     * Disables current on motor 1
150
     */
151
    @WebMethod()
152 11 andrej.cim
    public void setMotorOff1() {
153
    }
154 9 andrej.cim
155
    /**
156
     * Gets positions of both motors
157
     * @return Position
158
     */
159
    @WebMethod()
160 11 andrej.cim
    public Position getPosition() {
161 9 andrej.cim
        return new Position();
162 11 andrej.cim
    }
163 9 andrej.cim
164
    /**
165
     * Set continuous key movement
166
     */
167
    @WebMethod()
168 11 andrej.cim
    public void setContinuousKeyMovement() {
169
    }
170 9 andrej.cim
171
    /**
172
     * Set single step key movement
173
     */
174
    @WebMethod()
175 11 andrej.cim
    public void setSingleStepKeyMovement() {
176
    }
177 9 andrej.cim
178
    /**
179
     * Simulate Left Key Press
180
     */
181
    @WebMethod()
182 11 andrej.cim
    public void simulateLeftKeyPress() {
183
    }
184 9 andrej.cim
185
    /**
186
     * Simulate Left Key Release
187
     */
188
    @WebMethod()
189 11 andrej.cim
    public void simulateLeftKeyRelease() {
190
    }
191 9 andrej.cim
192
    /**
193
     * Simulate Right Key Press
194
     */
195
    @WebMethod()
196 11 andrej.cim
    public void simulateRightKeyPress() {
197
    }
198 9 andrej.cim
199
    /**
200
     * Simulate Right Key Release
201
     */
202
    @WebMethod()
203 11 andrej.cim
    public void simulateRightKeyRelease() {
204
    }
205 9 andrej.cim
206
    /**
207
     * Simulate Up Key Press
208
     */
209
    @WebMethod()
210 11 andrej.cim
    public void simulateUpKeyPress() {
211
    }
212 9 andrej.cim
213
    /**
214
     * Simulate Up Key Release
215
     */
216
    @WebMethod()
217 11 andrej.cim
    public void simulateUpKeyRelease() {
218
    }
219 9 andrej.cim
220
    /**
221
     * Simulate Down Key Press
222
     */
223
    @WebMethod()
224 11 andrej.cim
    public void simulateDownKeyPress() {
225
    }
226 9 andrej.cim
227
    /**
228
     * Simulate Down Key Release
229
     */
230
    @WebMethod()
231 11 andrej.cim
    public void simulateDownKeyRelease() {
232
    }
233 9 andrej.cim
234
    /**
235
     * Sets automatic position reporting.
236
     * 0..turns off automatic position reporting, 50..9999 autoreport interval in milliseconds
237
     * @param interval
238
     */
239
    @WebMethod()
240 11 andrej.cim
    public void setAutomaticPositionReporting(short interval) {
241
    }
242 9 andrej.cim
}