-
Notifications
You must be signed in to change notification settings - Fork 38
/
mrtstate.py
60 lines (56 loc) · 1.26 KB
/
mrtstate.py
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
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Jul 2 13:59:11 2018
pri
@author: oscartinney
"""
state_vars = ['lastCMDvalid',
'elDeg',
'elSteps',
'azDeg',
'azSteps',
'axis',
'mode',
'sense',
'elEnable',
'azEnable',
'voltage',
'el_lower_limit',
'ax',
'ay',
'az',
'mx',
'my',
'mz',
'pitch',
'roll',
'heading'
]
state_dtypes=['<U16', #'string',
'float64',
'int64',
'float64',
'int64',
'<U16', #'string',,
'<U16', #'string',
'int64',
'int',
'int',
'float64',
'int',
'float64',
'float64',
'float64',
'float64',
'float64',
'float64',
'float64',
'float64',
'float64'
]
state = {}
for state_var in state_vars:
state[state_var] = []
offsets = {'azoff': 0.0,
'eloff': 0.0}