summaryrefslogtreecommitdiffstats
path: root/conf.d/project/etc/sig-geoloc.json
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-09-08 19:03:21 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2017-12-14 11:00:25 +0100
commitbdf2d19cf8a3d6005456508ca52dba74cd9c103f (patch)
treec53d5a5bbf411b15123b9e5989fca26a25dcf844 /conf.d/project/etc/sig-geoloc.json
parent19bc13783a7451c81848ea132614a8df11c7740a (diff)
Reformat configuration schema
Change-Id: I9550b51bb343c683e84de7200ec6a73ce1dcd71a Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'conf.d/project/etc/sig-geoloc.json')
-rw-r--r--conf.d/project/etc/sig-geoloc.json338
1 files changed, 90 insertions, 248 deletions
diff --git a/conf.d/project/etc/sig-geoloc.json b/conf.d/project/etc/sig-geoloc.json
index 6db766d..7fc4d29 100644
--- a/conf.d/project/etc/sig-geoloc.json
+++ b/conf.d/project/etc/sig-geoloc.json
@@ -1,294 +1,136 @@
{
- "resources": [{
- "group": "/car/geoloc/",
- "values": [{
- "name": "latitude",
- "additionnals_infos": {
- "unit": "degree",
- "interval": 1000
- },
- "source": "GNSS/GPS",
- "class": "raw",
- "type": "double",
- "source_args": {
- "value": "location"
- }
+ "signals": [
+ {
+ "label": "gps/latitude",
+ "class": "state",
+ "unit": "degree",
+ "frequency": 1
},
{
- "name": "longitude",
- "additionnals_infos": {
- "unit": "degree",
- "interval": 1000
- },
- "source": "GNSS/GPS",
- "class": "raw",
- "type": "double",
- "source_args": {
- "value": "location"
- }
+ "label": "gps/longitude",
+ "class": "state",
+ "unit": "degree",
+ "frequency": 1
},
{
- "name": "altitude",
- "additionnals_infos": {
- "unit": "meter",
- "interval": 1000
- },
- "source": "GNSS/GPS",
- "class": "raw",
- "type": "double",
- "source_args": {
- "value": "location"
- }
+ "label": "gps/altitude",
+ "class": "state",
+ "unit": "meter",
+ "frequency": 1
},
{
- "name": "heading",
- "additionnals_infos": {
- "unit": "degree",
- "interval": 1000
- },
- "source": "GNSS/GPS",
- "class": "raw",
- "type": "double",
- "source_args": {
- "value": "location"
+ "label": "heading",
+ "class": "state",
+ "unit": "degree",
+ "frequency": 1,
+ "dependsOn": [
+ "gps/latitude",
+ "gps/longitude"
+ ],
+ "actions": {
+ "label": "Heading calculation",
+ "lua": "_Heading",
+ "args": {}
}
},
{
- "name": "speed",
- "additionnals_infos": {
- "unit": "m/s",
- "interval": 1000
- },
- "source": "GNSS/GPS",
- "class": "raw",
- "type": "double",
- "source_args": {
- "value": "location"
- }
+ "label": "gps/speed",
+ "class": "temporal",
+ "unit": "m/s",
+ "frequency": 1
},
{
- "name": "climb",
- "additionnals_infos": {
- "unit": "degree",
- "interval": 1000
- },
- "source": "Sensors",
- "class": "raw",
- "type": "double",
- "source_args": {
- "sensor": "gyro"
- }
+ "label": "mraa/climb",
+ "class": "state",
+ "unit": "degree",
+ "frequency": 1
},
{
- "name": "roll_rate",
- "additionnals_infos": {
- "unit": "degree/s",
- "interval": 1000
- },
- "source": "Sensors",
- "class": "raw",
- "type": "double",
- "source_args": {
- "sensor": "roll_rate"
- }
+ "label": "mraa/roll_rate",
+ "class": "state",
+ "unit": "degree/s",
+ "frequency": 1
},
{
- "name": "roll_rate",
- "additionnals_infos": {
- "unit": "degree/s",
- "interval": 1000
- },
- "source": "Sensors",
- "class": "raw",
- "type": "double",
- "source_args": {
- "sensor": "pitch_rate"
- }
+ "label": "mraa/roll_rate",
+ "class": "state",
+ "unit": "degree/s",
+ "frequency": 1
},
{
- "name": "roll_rate",
- "additionnals_infos": {
- "unit": "degree/s",
- "interval": 1000
- },
- "source": "Sensors",
- "class": "raw",
- "type": "double",
- "source_args": {
- "sensor": "yaw_rate"
- }
+ "label": "mraa/roll_rate",
+ "class": "state",
+ "unit": "degree/s",
+ "frequency": 1
},
{
- "name": "pdop",
- "additionnals_infos": {
- "interval": 1000
- }, "source": "GNSS/GPS",
- "class": "raw",
- "type": "double",
- "source_args": {
- "value": "location"
- }
+ "label": "gps/pdop",
+ "frequency": 1
},
{
- "name": "hdop",
- "additionnals_infos": {
- "interval": 1000
- },
- "source": "GNSS/GPS",
- "class": "raw",
- "type": "double",
- "source_args": {
- "value": "location"
- }
+ "label": "gps/hdop",
+ "frequency": 1
},
{
- "name": "vdop",
- "additionnals_infos": {
- "interval": 1000
- },
- "source": "GNSS/GPS",
- "class": "raw",
- "type": "double",
- "source_args": {
- "value": "location"
- }
+ "label": "gps/vdop",
+ "frequency": 1
},
{
- "name": "used_satellites",
- "additionnals_infos": {
- "interval": 1000
- },
- "source": "GNSS/GPS",
- "class": "raw",
- "type": "uint8",
- "source_args": {
- "value": "configuration"
- }
+ "label": "gps/used_satellites",
+ "frequency": 1
},
{
- "name": "tracked_satellites",
- "additionnals_infos": {
- "interval": 1000
- },
- "source": "GNSS/GPS",
- "class": "raw",
- "type": "uint8",
- "source_args": {
- "value": "configuration"
- }
+ "label": "gps/tracked_satellites",
+ "frequency": 1
},
{
- "name": "visible_satellites",
- "additionnals_infos": {
- "interval": 1000
- },
- "source": "GNSS/GPS",
- "class": "raw",
- "type": "uint8",
- "source_args": {
- "value": "configuration"
- }
+ "label": "gps/visible_satellites",
+ "frequency": 1
},
{
- "name": "sigma_hposition",
- "additionnals_infos": {
- "unit": "meter",
- "interval": 1000
- },
- "source": "GNSS/GPS",
- "class": "raw",
- "type": "double",
- "source_args": {
- "value": "configuration"
- }
+ "label": "gps/sigma_hposition",
+ "class": "state",
+ "unit": "meter",
+ "frequency": 1
},
{
- "name": "sigma_altitude",
- "additionnals_infos": {
- "unit": "meter",
- "interval": 1000
- },
- "source": "GNSS/GPS",
- "class": "raw",
- "type": "double",
- "source_args": {
- "value": "configuration"
- }
+ "label": "gps/sigma_altitude",
+ "class": "state",
+ "unit": "meter",
+ "frequency": 1
},
{
- "name": "sigma_heading",
- "additionnals_infos": {
- "unit": "degree",
- "interval": 1000
- },
- "source": "GNSS/GPS",
- "class": "raw",
- "type": "double",
- "source_args": {
- "value": "configuration"
- }
+ "label": "gps/sigma_heading",
+ "class": "state",
+ "unit": "degree",
+ "frequency": 1
},
{
- "name": "sigma_speed",
- "additionnals_infos": {
- "unit": "m/s",
- "interval": 1000
- },
- "source": "GNSS/GPS",
- "class": "raw",
- "type": "double",
- "source_args": {
- "value": "configuration"
- }
+ "label": "gps/sigma_speed",
+ "class": "temporal",
+ "unit": "m/s",
+ "frequency": 1
},
{
- "name": "sigma_climb",
- "additionnals_infos": {
- "unit": "degree",
- "interval": 1000
- },
- "source": "GNSS/GPS",
- "class": "raw",
- "type": "double",
- "source_args": {
- "value": "configuration"
- }
+ "label": "gps/sigma_climb",
+ "class": "state",
+ "unit": "degree",
+ "frequency": 1
},
{
- "name": "gnss_fix_status",
- "additionnals_infos": {
- "interval": 1000
- },
- "source": "GNSS/GPS",
- "class": "raw",
- "type": "uint16",
- "source_args": {
- "value": "configuration"
- }
+ "label": "gps/gnss_fix_status",
+ "class": "state",
+ "frequency": 1
},
{
- "name": "dr_status",
- "additionnals_infos": {
- "interval": 1000
- },
- "source": "GNSS/GPS",
- "class": "raw",
- "type": "boolean",
- "source_args": {
- "value": "configuration"
- }
+ "label": "gps/dr_status",
+ "class": "state",
+ "frequency": 1
},
{
- "name": "reliabilty_index",
- "additionnals_infos": {
- "interval": 1000
- },
- "source": "GNSS/GPS",
- "class": "raw",
- "type": "uint8_t",
- "source_args": {
- "value": "configuration"
- }
- }]
- }]
-}
+ "label": "gps/reliabilty_index",
+ "class": "temporal",
+ "frequency": 1
+ }
+ ]
+} \ No newline at end of file