|
sketchbook
|
Functions | |
| def | read_adc_value |
| def | read_mon_values |
| def | read_mon_log |
Variables | |
| string | log_file = "Yun_Log_BatteryDisCharging.log" |
| string | fmt_print = "%s, %14.3f, %9.3f s, %9.3f s, %9.3f V, %9.3f A, %9.3f Ohm, %9.3f W, %9.3f mAh, %9.3f J" |
| string | fmt_write = "%s, %14.3f, %9.3f, %9.3f, %9.3f, %9.3f, %9.3f, %9.3f, %9.3f, %9.3f" |
| tuple | spamreader = csv.reader(csvfile, quotechar='|') |
| tuple | delay = time.time() |
| tuple | getlog = (delay > 300.) |
| tuple | W = read_mon_values() |
| tuple | lW = float(row[2]) |
| tuple | ts = (time.asctime(), time.time()) |
| int | i = 0 |
| tuple | output = fmt_print%(ts + tuple(item)) |
| tuple | resistance = np.float64(voltage) |
| power = voltage*current | |
| def Yun_Log_BatteryDisCharging.read_adc_value | ( | adc | ) |
| def Yun_Log_BatteryDisCharging.read_mon_log | ( | ) |
| def Yun_Log_BatteryDisCharging.read_mon_values | ( | ) |
| tuple Yun_Log_BatteryDisCharging.delay = time.time() |
| string Yun_Log_BatteryDisCharging.fmt_print = "%s, %14.3f, %9.3f s, %9.3f s, %9.3f V, %9.3f A, %9.3f Ohm, %9.3f W, %9.3f mAh, %9.3f J" |
| string Yun_Log_BatteryDisCharging.fmt_write = "%s, %14.3f, %9.3f, %9.3f, %9.3f, %9.3f, %9.3f, %9.3f, %9.3f, %9.3f" |
| tuple Yun_Log_BatteryDisCharging.getlog = (delay > 300.) |
| int Yun_Log_BatteryDisCharging.i = 0 |
| string Yun_Log_BatteryDisCharging.log_file = "Yun_Log_BatteryDisCharging.log" |
| tuple Yun_Log_BatteryDisCharging.lW = float(row[2]) |
| Yun_Log_BatteryDisCharging.power = voltage*current |
| tuple Yun_Log_BatteryDisCharging.resistance = np.float64(voltage) |
| tuple Yun_Log_BatteryDisCharging.spamreader = csv.reader(csvfile, quotechar='|') |
| tuple Yun_Log_BatteryDisCharging.ts = (time.asctime(), time.time()) |
| tuple Yun_Log_BatteryDisCharging.W = read_mon_values() |
1.8.6