Commit a1726cce authored by root's avatar root
Browse files

monitor_battery cambiado el paso 3.3: if

parent b0aabd6e
......@@ -199,16 +199,18 @@ Para poder mostrar los datos por pantalla, basta con utilizar la función *print
def print_values_tc(result):
print '----- MEASUREMENT -----'
print "Cell Current: "+str(result[0])+" A"
print "Temperature 1: "+str(result[1])+" C"
print "Temperature 2: "+str(result[2])+" C"
if len(result) > 9
print "Cell Current: "+str(result[0])+" A"
print "Temperature 1: "+str(result[1])+" C"
print "Temperature 2: "+str(result[2])+" C"
print '------------------------'
def print_value_ta(result):
print '----- MEASUREMENT -----'
print "Cell Voltage: "+str(result[0])+" V"
print "Cell Temperature: "+str(result[1])+" C"
if len(result) > 7
print "Cell Voltage: "+str(result[0])+" V"
print "Cell Temperature: "+str(result[1])+" C"
print '-----------------------'
```
......
......@@ -122,9 +122,10 @@ def print_values_tc(result):
: type result: array
"""
print '----- MEASUREMENT -----'
print "Cell Current: "+str(result[0])+" A"
print "Temperature 1: "+str(result[1])+" C"
print "Temperature 2: "+str(result[2])+" C"
if len(result) > 9
print "Cell Current: "+str(result[0])+" A"
print "Temperature 1: "+str(result[1])+" C"
print "Temperature 2: "+str(result[2])+" C"
print '------------------------'
def print_value_ta(result):
......@@ -136,8 +137,9 @@ def print_value_ta(result):
: type result: array
"""
print '----- MEASUREMENT -----'
print "Cell Voltage: "+str(result[0])+" V"
print "Cell Temperature: "+str(result[1])+" C"
if len(result) > 7
print "Cell Voltage: "+str(result[0])+" V"
print "Cell Temperature: "+str(result[1])+" C"
print '-----------------------'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment