sketchbook
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Namespaces | Functions | Variables
Yun_Log_BatteryDisCharging.py File Reference

Namespaces

 Yun_Log_BatteryDisCharging
 

Functions

def Yun_Log_BatteryDisCharging.read_adc_value
 
def Yun_Log_BatteryDisCharging.read_mon_values
 
def Yun_Log_BatteryDisCharging.read_mon_log
 

Variables

string Yun_Log_BatteryDisCharging.log_file = "Yun_Log_BatteryDisCharging.log"
 
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.spamreader = csv.reader(csvfile, quotechar='|')
 
tuple Yun_Log_BatteryDisCharging.delay = time.time()
 
tuple Yun_Log_BatteryDisCharging.getlog = (delay > 300.)
 
tuple Yun_Log_BatteryDisCharging.W = read_mon_values()
 
tuple Yun_Log_BatteryDisCharging.lW = float(row[2])
 
tuple Yun_Log_BatteryDisCharging.ts = (time.asctime(), time.time())
 
int Yun_Log_BatteryDisCharging.i = 0
 
tuple Yun_Log_BatteryDisCharging.output = fmt_print%(ts + tuple(item))
 
tuple Yun_Log_BatteryDisCharging.resistance = np.float64(voltage)
 
 Yun_Log_BatteryDisCharging.power = voltage*current