forked from wtpc/HOoop
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathblanco.py
More file actions
23 lines (20 loc) · 807 Bytes
/
blanco.py
File metadata and controls
23 lines (20 loc) · 807 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
class Blanco(object):
"""
Define un blanco a ser detectado por un radar
"""
def __init__(self, amplitud, tiempo_inicial, tiempo_final):
self.amp = amplitud
self.ti = tiempo_inicial
self.tf = tiempo_final
#TODO: completar con la inicializacion de los parametros del objeto
self.amplitud = amplitud
self.tiempo_inicial = tiempo_inicial
self.tiempo_final = tiempo_final
pass
def reflejar(self, senal, tiempo_inicial, tiempo_final):
ret = [senal[i]/4.0 for i in range(len(senal))]
return ret
#TODO ver como se encajan los tiempos del blanco y del intervalo de tiempo
#(interseccion de invervalos)
# despues aplicar los parametros del blanco sobre ese intervalo de tiempo
pass