-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathcontrol.py
More file actions
41 lines (29 loc) · 893 Bytes
/
Copy pathcontrol.py
File metadata and controls
41 lines (29 loc) · 893 Bytes
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
# -*- coding: utf-8 -*-
"""
Created on Mon Jul 10 21:01:03 2017
"""
class Control:
reference = 0.0
Trun = 0.0 # Run time [s]
def __init__(self, params):
self.params = {}
self.Trun = 0.0
self.config = { \
'Name' : 'Controller base', \
'Phases': 0, \
'Views': 0 \
}
return
def set_parameters(self, params):
return
def get_parameters_list(self):
return self.params
def get_parameters(self):
return {}
def set_motor(self, motor):
self.motor = motor
return
def set_reference(self, ref):
self.reference = ref
def calculate(self, dt):
return