-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathtelemetry_config.example.yml
More file actions
110 lines (97 loc) · 2.29 KB
/
telemetry_config.example.yml
File metadata and controls
110 lines (97 loc) · 2.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
asset_name: NostromoLV426
ingestion_client_key: nostromo_lv_426
channels:
log_channel: &log_channel
name: log
data_type: string
description: asset logs
velocity_channel: &velocity_channel
name: velocity
data_type: double
description: speed
unit: Miles Per Hour
component: mainmotor
voltage_channel: &voltage_channel
name: voltage
data_type: int32
description: voltage at the source
unit: Volts
vehicle_state_channel: &vehicle_state_channel
name: vehicle_state
data_type: enum
description: vehicle state
unit: vehicle state
enum_types:
- name: Accelerating
key: 0
- name: Decelerating
key: 1
- name: Stopped
key: 2
gpio_channel: &gpio_channel
name: gpio
data_type: bit_field
description: on/off values for pins on gpio
bit_field_elements:
- name: 12v
index: 0
bit_count: 1
- name: charge
index: 1
bit_count: 2
- name: led
index: 3
bit_count: 4
- name: heater
index: 7
bit_count: 1
rules:
- name: overheating
description: Checks for vehicle overheating
expression: $1 == "Accelerating" && $2 > 80
channel_references:
- $1: *vehicle_state_channel
- $2: *voltage_channel
type: review
- name: kinetic_energy
description: Tracks high energy output while in motion
type: review
assignee: cthulhu@rlyeh.com
expression:
name: kinetic_energy_gt
channel_references:
- $1: *velocity_channel
sub_expressions:
- $mass: 10
- $threshold: 470
tags:
- nostromo
- name: failure
description: Checks for failures reported by logs
type: review
assignee: cthulhu@rlyeh.com
expression:
name: log_substring_contains
channel_references:
- $1: *log_channel
sub_expressions:
- $sub_string: failure
tags:
- failure
- nostromo
flows:
- name: readings
channels:
- <<: *velocity_channel
- <<: *voltage_channel
- <<: *vehicle_state_channel
- <<: *gpio_channel
- name: voltage
channels:
- <<: *voltage_channel
- name: gpio_channel
channels:
- <<: *gpio_channel
- name: logs
channels:
- <<: *log_channel