Project

General

Profile

Statistics
| Revision:

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

History | View | Annotate | Download (4.2 KB)

1
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
    public Motion() {
18
        super("motion");
19
        openPort();
20
    }
21

    
22
    /**
23
     * Sets parameters for next motor move
24
     * @param steps
25
     * @param freq
26
     */
27
    @WebMethod()
28
    public void setMove0(int steps, float freq) {
29
    }
30

    
31
    /**
32
     * Sets parameters for next motor move
33
     * @param steps
34
     * @param freq
35
     */
36
    @WebMethod()
37
    public void setMove1(int steps, float freq) {
38
    }
39

    
40
    /**
41
     * Moves motors according to set moves
42
     */
43
    @WebMethod()
44
    public void run() {
45
    }
46

    
47
    /**
48
     * Sets angular velocity in steps / sec
49
     * @param omega0
50
     */
51
    @WebMethod()
52
    public void setInitialAngularVel0(float omega0) {
53
    }
54

    
55
    /**
56
     * Sets angular velocity in steps / sec
57
     * @param omega0
58
     */
59
    @WebMethod()
60
    public void setInitialAngularVel1(float omega0) {
61
    }
62

    
63
    /**
64
     * Sets angular acceleration in steps / sec^2
65
     * @param accel
66
     */
67
    @WebMethod()
68
    public void setAngularAcceleration0(float accel) {
69
    }
70

    
71
    /**
72
     * Sets angular acceleration in steps / sec^2
73
     * @param accel
74
     */
75
    @WebMethod()
76
    public void setAngularAcceleration1(float accel) {
77
    }
78

    
79
    /**
80
     *
81
     * @param steps
82
     */
83
    @WebMethod()
84
    public void setLackCorrection0(short steps) {
85
    }
86

    
87
    /**
88
     *
89
     * @param steps
90
     */
91
    @WebMethod()
92
    public void setLackCorrection1(short steps) {
93
    }
94

    
95
    /**
96
     * Sets angular deceleration in steps / sec^2
97
     * @param decel
98
     */
99
    @WebMethod()
100
    public void setAngularDeceleration0(float decel) {
101
    }
102

    
103
    /**
104
     * Sets angular deceleration in steps / sec^2
105
     * @param decel
106
     */
107
    @WebMethod()
108
    public void setAngularDeceleration1(float decel) {
109
    }
110

    
111
    /**
112
     * Sets position for stepper 0
113
     * @param position
114
     */
115
    @WebMethod()
116
    public void setPosition0(int position) {
117
    }
118

    
119
    /**
120
     * Sets position for stepper 1
121
     * @param position
122
     */
123
    @WebMethod()
124
    public void setPosition1(int position) {
125
    }
126

    
127
    /**
128
     * Stops motor 0
129
     */
130
    @WebMethod()
131
    public void stopMotor0() {
132
    }
133

    
134
    /**
135
     * Stops motor 1
136
     */
137
    @WebMethod()
138
    public void stopMotor1() {
139
    }
140

    
141
    /**
142
     * Disables current on motor 0
143
     */
144
    @WebMethod()
145
    public void setMotorOff0() {
146
    }
147

    
148
    /**
149
     * Disables current on motor 1
150
     */
151
    @WebMethod()
152
    public void setMotorOff1() {
153
    }
154

    
155
    /**
156
     * Gets positions of both motors
157
     * @return Position
158
     */
159
    @WebMethod()
160
    public Position getPosition() {
161
        return new Position();
162
    }
163

    
164
    /**
165
     * Set continuous key movement
166
     */
167
    @WebMethod()
168
    public void setContinuousKeyMovement() {
169
    }
170

    
171
    /**
172
     * Set single step key movement
173
     */
174
    @WebMethod()
175
    public void setSingleStepKeyMovement() {
176
    }
177

    
178
    /**
179
     * Simulate Left Key Press
180
     */
181
    @WebMethod()
182
    public void simulateLeftKeyPress() {
183
    }
184

    
185
    /**
186
     * Simulate Left Key Release
187
     */
188
    @WebMethod()
189
    public void simulateLeftKeyRelease() {
190
    }
191

    
192
    /**
193
     * Simulate Right Key Press
194
     */
195
    @WebMethod()
196
    public void simulateRightKeyPress() {
197
    }
198

    
199
    /**
200
     * Simulate Right Key Release
201
     */
202
    @WebMethod()
203
    public void simulateRightKeyRelease() {
204
    }
205

    
206
    /**
207
     * Simulate Up Key Press
208
     */
209
    @WebMethod()
210
    public void simulateUpKeyPress() {
211
    }
212

    
213
    /**
214
     * Simulate Up Key Release
215
     */
216
    @WebMethod()
217
    public void simulateUpKeyRelease() {
218
    }
219

    
220
    /**
221
     * Simulate Down Key Press
222
     */
223
    @WebMethod()
224
    public void simulateDownKeyPress() {
225
    }
226

    
227
    /**
228
     * Simulate Down Key Release
229
     */
230
    @WebMethod()
231
    public void simulateDownKeyRelease() {
232
    }
233

    
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
    public void setAutomaticPositionReporting(short interval) {
241
    }
242
}