Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
69 lines (56 loc) · 1.37 KB

File metadata and controls

69 lines (56 loc) · 1.37 KB
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
package d3;
import java.util.ArrayList;
import PamguardMVC.PamDataUnit;
public class D3DataUnit extends PamDataUnit {
private ArrayList<float[]> sensorData = new ArrayList<>();
private ArrayList<Integer> sensorSampleRate = new ArrayList<>();
private float[] depth;
private float[] jerk;
public D3DataUnit(long timeMilliseconds) {
super(timeMilliseconds);
// TODO Auto-generated constructor stub
}
public void addSensorData(float[] sensorData2, int sensorSampleRate) {
sensorData.add(sensorData2);
this.sensorSampleRate.add(sensorSampleRate);
}
/**
* @return the sensorData
*/
public float[] getSensorData(int sensorIndex) {
if (sensorIndex < 0 || sensorIndex >= sensorData.size()) {
return null;
}
return sensorData.get(sensorIndex);
}
/**
* @return the sensorSampleRate
*/
public int getSensorSampleRate(int sensorIndex) {
if (sensorIndex < 0 || sensorIndex >= sensorData.size()) {
return -1;
}
return sensorSampleRate.get(sensorIndex);
}
public void setDepth(float[] depth) {
this.depth = depth;
}
/**
* @return the depthData
*/
public float[] getDepth() {
return depth;
}
public void setJerk(float[] jerk) {
this.jerk = jerk;
}
public float[] getJerk() {
return jerk;
}
// /**
// * @param depthData the depthData to set
// */
// public void setDepthData(short[] depthData) {
// this.depthData = depthData;
// }
}
Morty Proxy This is a proxified and sanitized view of the page, visit original site.