Sensors - Sensors Hardware devices that take measurements...

Info iconThis preview shows pages 1–8. Sign up to view the full content.

View Full Document Right Arrow Icon
Sensors’
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Hardware’devices’that’take’measurements’of’ the’physical’environment’ Some’examples’ 3-axis’Accelerometer’ 3-axis’Magnetic’Feld’sensor’ Temperature’sensor’ Proximity’sensor’ Orientation’sensor’ Light’sensor’
Background image of page 2
System’service’that’manages’device±s’sensors’ Get’instance’with’ getSystemService(Context.SENSOR_SERVICE)’ Access’specifc’sensor’with’ SensorManager.’ getDeFaultSensor(int’type)’
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
TYPE_ACCELEROMETER’ TYPE_GRAVITY’ TYPE_GYROSCOPE’ TYPE_LIGHT’ YPE_MAGNETIC_FIELD’ TYPE_PRESSURE’ TYPE_PROXIMITY’ TYPE_TEMPERATURE’
Background image of page 4
Represents’a’Sensor’event’ Holds’Sensor-specifc’data’ e.g.,’sensor's’type,’the’time-stamp,’accuracy’&’ measurement’data’
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
When’device’is’lying’flat,’face- up’on’a’table,’axes’run’ X’–’right’to’left’ Y’–’top’to’bottom’ Z’–’up’to’down’ Coordinate’system’does’not’ depend’on’device’orientation’ (portrait’vs.’landscape)’
Background image of page 6
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 8
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 17

Sensors - Sensors Hardware devices that take measurements...

This preview shows document pages 1 - 8. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online