Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F77501618
SensorFusion.java
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Aug 14, 20:44
Size
1 KB
Mime Type
text/x-java
Expires
Fri, Aug 16, 20:44 (1 d, 22 h)
Engine
blob
Format
Raw Data
Handle
19879808
Attached To
R9555 Android app for multimodal data acquisition from wearables
SensorFusion.java
View Options
package
ch.epfl.esl.elevatedmonitor.Devices.MetaMotionR.Sensors
;
import
android.content.Context
;
import
ch.epfl.esl.elevatedmonitor.Devices.MetaMotionR.MetaWear
;
import
ch.epfl.esl.elevatedmonitor.Interfaces.InterfaceData
;
import
ch.epfl.esl.elevatedmonitor.Interfaces.InterfaceSensor
;
import
ch.epfl.esl.elevatedmonitor.R
;
import
ch.epfl.esl.elevatedmonitor.SuperClasses.Data
;
import
ch.epfl.esl.elevatedmonitor.SuperClasses.SensorDevice
;
import
ch.epfl.esl.elevatedmonitor.SuperClasses.TimeStamp
;
public
class
SensorFusion
extends
SensorDevice
implements
InterfaceSensor
{
public
final
static
int
W
=
0
;
public
final
static
int
X
=
1
;
public
final
static
int
Y
=
2
;
public
final
static
int
Z
=
3
;
private
class
FusionData
extends
Data
implements
InterfaceData
{
}
private
class
Time
extends
TimeStamp
{
}
public
SensorFusion
(
Context
context
)
{
super
(
context
);
addData
(
new
FusionData
());
//w
addData
(
new
FusionData
());
//x
addData
(
new
FusionData
());
//y
addData
(
new
FusionData
());
//z
addTime
(
new
Time
());
// Time stamp
}
@Override
public
void
setId
()
{
this
.
id
=
MetaWear
.
SENSOR_FUSION
;
}
@Override
public
void
setName
()
{
this
.
name
=
sensorContext
.
getResources
().
getString
(
R
.
string
.
sensor_fusion_metawear
);
}
}
Event Timeline
Log In to Comment