Sensor type declaration.
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer, | public, | parameter | :: | SENSOR_ID_LEN | = | ID_LEN |
Max. sensor id length. |
integer, | public, | parameter | :: | SENSOR_NAME_LEN | = | 32 |
Max. sensor name length. |
integer, | public, | parameter | :: | SENSOR_SN_LEN | = | 32 |
Max. sensor serial number length. |
integer, | public, | parameter | :: | SENSOR_META_LEN | = | 32 |
Max. sensor meta description length. |
integer, | public, | parameter | :: | SENSOR_TYPE_NONE | = | 0 |
Unknown sensor type. |
integer, | public, | parameter | :: | SENSOR_TYPE_VIRTUAL | = | 1 |
Virtual sensor. |
integer, | public, | parameter | :: | SENSOR_TYPE_SYSTEM | = | 2 |
Operating system. |
integer, | public, | parameter | :: | SENSOR_TYPE_FS | = | 3 |
File system. |
integer, | public, | parameter | :: | SENSOR_TYPE_PROCESS | = | 4 |
Process or service. |
integer, | public, | parameter | :: | SENSOR_TYPE_NETWORK | = | 5 |
Network-based sensor (Ethernet, HTTP). |
integer, | public, | parameter | :: | SENSOR_TYPE_MULTI | = | 6 |
Multi-sensor system. |
integer, | public, | parameter | :: | SENSOR_TYPE_METEO | = | 7 |
Meteorological sensor. |
integer, | public, | parameter | :: | SENSOR_TYPE_RTS | = | 8 |
Robotic total station. |
integer, | public, | parameter | :: | SENSOR_TYPE_GNSS | = | 9 |
GNSS sensor. |
integer, | public, | parameter | :: | SENSOR_TYPE_LEVEL | = | 10 |
Level sensor. |
integer, | public, | parameter | :: | SENSOR_TYPE_MEMS | = | 11 |
MEMS sensor. |
integer, | public, | parameter | :: | SENSOR_TYPE_CAMERA | = | 12 |
IP camera or webcam. |
integer, | public, | parameter | :: | SENSOR_TYPE_LAST | = | 12 |
Never use this. |
integer, | public, | parameter | :: | SENSOR_TYPE_NAME_LEN | = | 7 |
Max. length of sensor type name. |
character(len=*), | public, | parameter | :: | SENSOR_TYPE_NAMES(SENSOR_TYPE_NONE:SENSOR_TYPE_LAST) | = | [character(len=SENSOR_TYPE_NAME_LEN)::'none', 'virtual', 'system', 'fs', 'process', 'network', 'multi', 'meteo', 'rts', 'gnss', 'level', 'mems', 'camera'] |
Array of sensor type names. |
integer, | public, | parameter | :: | SENSOR_SIZE | = | storage_size(sensor_type())/8 |
Size of |
Returns whether sensors are equal.
Returns .true.
if given sensors are equal.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(sensor_type), | intent(in) | :: | sensor1 |
First sensor. |
||
type(sensor_type), | intent(in) | :: | sensor2 |
Second sensor. |
Sensor description.
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
character(len=SENSOR_ID_LEN), | public | :: | id | = | ' ' |
Sensor id ( |
|
character(len=NODE_ID_LEN), | public | :: | node_id | = | ' ' |
Associated sensor node. |
|
integer, | public | :: | type | = | SENSOR_TYPE_NONE |
Sensor type. |
|
character(len=SENSOR_NAME_LEN), | public | :: | name | = | ' ' |
Sensor name. |
|
character(len=SENSOR_SN_LEN), | public | :: | sn | = | ' ' |
Serial number (optional). |
|
character(len=SENSOR_META_LEN), | public | :: | meta | = | ' ' |
Meta information (optional). |
|
real(kind=r8), | public | :: | x | = | 0.0_r8 |
Sensor x or easting (optional). |
|
real(kind=r8), | public | :: | y | = | 0.0_r8 |
Sensor y or northing (optional). |
|
real(kind=r8), | public | :: | z | = | 0.0_r8 |
Sensor z or alt (optional). |
|
real(kind=r8), | public | :: | lon | = | 0.0_r8 |
Longitude in degrees (optional). |
|
real(kind=r8), | public | :: | lat | = | 0.0_r8 |
Latitude in degrees (optional). |
|
real(kind=r8), | public | :: | alt | = | 0.0_r8 |
Altitude or elevation in metres (optional). |
Returns .true.
if given sensors are equal.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(sensor_type), | intent(in) | :: | sensor1 |
First sensor. |
||
type(sensor_type), | intent(in) | :: | sensor2 |
Second sensor. |
Returns .true.
if the attributes of the given sensor type are
valid.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(sensor_type), | intent(in) | :: | sensor |
Sensor type. |
Returns type enumerator from given name.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | name |
Sensor type name. |
Returns .true.
if type
is valid sensor type. The type
SENSOR_TYPE_NONE
is a valid type.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | type |
Sensor type. |
Returns name of given type enumerator as allocatable string.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | type |
Sensor type enumerator ( |
Sensor type name.
Prints sensor to standard output or given file unit.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(sensor_type), | intent(inout) | :: | sensor |
Sensor type. |
||
integer, | intent(in), | optional | :: | unit |
File unit. |