<< android android basic_ldblocks >>

ORTD Scilab Interface Toolbox >> android > ld_AndroidSensors

ld_AndroidSensors

Read out Android Sensors and synchronise the simulation to them

Calling Sequence

[sim, out, SensorID] = ld_AndroidSensors(sim, events, in, ConfigStruct)

Description

Special: SYNC_BLOCK (use only one block of this type in an asynchronous running sub-simulation)

out - vector of size 10 containing the sensor values

in - when in becomes one, the synchronisation loop is interrupted

SensorID - The ID of the sensor that send new data

Possible sensor ID&apos;s:

ASENSOR_TYPE_ACCELEROMETER = 1,

ASENSOR_TYPE_MAGNETIC_FIELD = 2,

ASENSOR_TYPE_GYROSCOPE = 4,

ASENSOR_TYPE_LIGHT = 5,

ASENSOR_TYPE_PROXIMITY = 8

EXPERIMENTAL


Report an issue
<< android android basic_ldblocks >>