Sensor Scol plugin
Multi platform sensors for handled devices
|
Functions | |
int | _IsSensorAvailable (mmachine m) |
_IsSensorAvailable : indicates if whether or not a sensor of the given type is available on the current device. | |
int | _IsSensorEnabled (mmachine m) |
_IsSensorEnabled : indicates if whether or not the sensor of the given type is enabled. | |
int | _SetSensorEnableSync (mmachine m) |
_SetSensorEnable : enable or disable a sensor of a given type. | |
int | _GetVectorData (mmachine m) |
_GetVectorData : get data from a sensor : get a 3D vector with float value | |
int | _GetDeviceQuaternionOrientation (mmachine m) |
_GetDeviceQuaternionOrientation : get device orientation in x seconds (quaternion) | |
int | _GetFloatData (mmachine m) |
_GetDeviceEulerOrientation : get device orientation as euler angles | |
int | _SetDeviceVibration (mmachine m) |
_SetDeviceVibration : Set a vibration time duration on the device | |
int | _SetDeviceVibrationPattern (mmachine m) |
_SetDeviceVibrationPattern : Set a vibration pattern from a time / pause list | |
int | _StartDeviceVibration (mmachine m) |
_StartDeviceVibration : Start the device vibration | |
int | _StopDeviceVibration (mmachine m) |
_StopDeviceVibration : Stop the device vibration | |
int | _StartDeviceLocation (mmachine m) |
_StartDeviceLocation : Start the device location service | |
int | _StopDeviceLocation (mmachine m) |
_StopDeviceLocation : Stop the device location service | |
int | _GetDeviceLocation (mmachine m) |
_GetDeviceLocation : Get the device location | |
int | _GetLocationOffset (mmachine m) |
_GetLocationOffset : Get the offset from a longitude / latitude reference in meters | |
int | _DsSensorCallBack (mmachine m) |
_DsSensorCallBack : Destroy sensor callback object | |
Scol functions for devices sensors manipulation
int _DsSensorCallBack | ( | mmachine | m | ) |
_DsSensorCallBack : Destroy sensor callback object
fun [ObjSensorCB] I
ObjSensorCB | : sensor callback object to destroy |
Definition at line 996 of file scolplugin.cpp.
int _GetDeviceLocation | ( | mmachine | m | ) |
_GetDeviceLocation : Get the device location
Prototype: fun [] [F F F]
Definition at line 817 of file scolplugin.cpp.
int _GetDeviceQuaternionOrientation | ( | mmachine | m | ) |
_GetDeviceQuaternionOrientation : get device orientation in x seconds (quaternion)
Prototype: fun [I] [F F F F]
I | the delay (ms) after last orientation computing (last sensor event received), or NIL / 0 if you want the last computed orientation. |
Definition at line 377 of file scolplugin.cpp.
int _GetFloatData | ( | mmachine | m | ) |
_GetDeviceEulerOrientation : get device orientation as euler angles
Prototype: fun [] [F F F]
_GetFloatData : get data from a sensor : get a float value
Prototype: fun [I] F
I | : the type of the sensor (see SSensorType enum in SensorTypes.h - include dir - ) |
Definition at line 487 of file scolplugin.cpp.
int _GetLocationOffset | ( | mmachine | m | ) |
_GetLocationOffset : Get the offset from a longitude / latitude reference in meters
Prototype: fun [F F F F] [F F]
F | : longitude point for reference in radian |
F | : latitude point for reference in radian |
F | : longitude point in radian |
F | : latitude point in radian |
Definition at line 867 of file scolplugin.cpp.
int _GetVectorData | ( | mmachine | m | ) |
_GetVectorData : get data from a sensor : get a 3D vector with float value
Prototype: fun [I] [F F F]
I | : the type of the sensor (see SSensorType enum in SensorTypes.h - include dir - ) |
Definition at line 310 of file scolplugin.cpp.
int _IsSensorAvailable | ( | mmachine | m | ) |
_IsSensorAvailable : indicates if whether or not a sensor of the given type is available on the current device.
Prototype: fun [I] I
I | : the type of the sensor (see SSensorType enum in SensorTypes.h - include dir - ) |
Definition at line 154 of file scolplugin.cpp.
int _IsSensorEnabled | ( | mmachine | m | ) |
_IsSensorEnabled : indicates if whether or not the sensor of the given type is enabled.
Prototype: fun [I] I
I | : the type of the sensor (see SSensorType enum in SensorTypes.h - include dir - ) |
Definition at line 195 of file scolplugin.cpp.
int _SetDeviceVibration | ( | mmachine | m | ) |
_SetDeviceVibration : Set a vibration time duration on the device
Prototype: fun [I] I
I | : The vibration time in millisecond |
Definition at line 544 of file scolplugin.cpp.
int _SetDeviceVibrationPattern | ( | mmachine | m | ) |
_SetDeviceVibrationPattern : Set a vibration pattern from a time / pause list
Prototype: fun [I] I
[I | r1] : The pattern list contains 0::100::400::100::nil for example |
I | : 1 for loop enable, 0 otherwise |
Definition at line 592 of file scolplugin.cpp.
int _SetSensorEnableSync | ( | mmachine | m | ) |
_SetSensorEnable : enable or disable a sensor of a given type.
Prototype: fun [I I] I
I | : the type of the sensor (see SSensorType enum in SensorTypes.h - include dir - ) |
I | : the state to set (1 = enabled, 0 = disabled) |
Definition at line 247 of file scolplugin.cpp.
int _StartDeviceLocation | ( | mmachine | m | ) |
_StartDeviceLocation : Start the device location service
Prototype: fun [] I
Definition at line 709 of file scolplugin.cpp.
int _StartDeviceVibration | ( | mmachine | m | ) |
_StartDeviceVibration : Start the device vibration
Prototype: fun [] I
Definition at line 647 of file scolplugin.cpp.
int _StopDeviceLocation | ( | mmachine | m | ) |
_StopDeviceLocation : Stop the device location service
Prototype: fun [] I
Definition at line 786 of file scolplugin.cpp.
int _StopDeviceVibration | ( | mmachine | m | ) |
_StopDeviceVibration : Stop the device vibration
Prototype: fun [] I
Definition at line 678 of file scolplugin.cpp.