Public Member Functions | Public Attributes | Static Public Attributes | List of all members
power_state_phidget.PowerStatePhidget Class Reference

Public Member Functions

def __init__ (self)
 
def append_voltage_bag (self, num)
 
def calculate_power_consumption (self)
 
def calculate_relative_remaining_capacity (self)
 
def calculate_voltage (self)
 
def phidget_cb (self, msg)
 
def publish (self)
 

Public Attributes

 cb_avg_time
 
 charging
 
 current
 
 current_max
 
 current_min
 
 last_update
 
 period_record
 
 pr_next
 
 pub_power_state
 
 sub_analog_sensors
 
 voltage
 
 voltage_bag
 
 voltage_bag_maxlen
 
 voltage_divider_factor
 
 voltage_empty
 
 voltage_full
 

Static Public Attributes

int PERIOD_RECORD_SIZE = 6
 
int PHIDGET_MAX_VALUE = 999
 
int PHIDGET_MIN_VALUE = 0
 
float VOLTAGE_COLLECTION_TIME = 6.0
 

Detailed Description

Definition at line 24 of file power_state_phidget.py.

Constructor & Destructor Documentation

def power_state_phidget.PowerStatePhidget.__init__ (   self)

Definition at line 30 of file power_state_phidget.py.

Member Function Documentation

def power_state_phidget.PowerStatePhidget.append_voltage_bag (   self,
  num 
)

Definition at line 53 of file power_state_phidget.py.

def power_state_phidget.PowerStatePhidget.calculate_power_consumption (   self)

Definition at line 110 of file power_state_phidget.py.

def power_state_phidget.PowerStatePhidget.calculate_relative_remaining_capacity (   self)

Definition at line 116 of file power_state_phidget.py.

def power_state_phidget.PowerStatePhidget.calculate_voltage (   self)

Definition at line 58 of file power_state_phidget.py.

def power_state_phidget.PowerStatePhidget.phidget_cb (   self,
  msg 
)

Definition at line 62 of file power_state_phidget.py.

def power_state_phidget.PowerStatePhidget.publish (   self)

Definition at line 126 of file power_state_phidget.py.

Member Data Documentation

power_state_phidget.PowerStatePhidget.cb_avg_time

Definition at line 49 of file power_state_phidget.py.

power_state_phidget.PowerStatePhidget.charging

Definition at line 34 of file power_state_phidget.py.

power_state_phidget.PowerStatePhidget.current

Definition at line 32 of file power_state_phidget.py.

power_state_phidget.PowerStatePhidget.current_max

Definition at line 41 of file power_state_phidget.py.

power_state_phidget.PowerStatePhidget.current_min

Definition at line 42 of file power_state_phidget.py.

power_state_phidget.PowerStatePhidget.last_update

Definition at line 33 of file power_state_phidget.py.

power_state_phidget.PowerStatePhidget.period_record

Definition at line 48 of file power_state_phidget.py.

int power_state_phidget.PowerStatePhidget.PERIOD_RECORD_SIZE = 6
static

Definition at line 27 of file power_state_phidget.py.

int power_state_phidget.PowerStatePhidget.PHIDGET_MAX_VALUE = 999
static

Definition at line 25 of file power_state_phidget.py.

int power_state_phidget.PowerStatePhidget.PHIDGET_MIN_VALUE = 0
static

Definition at line 26 of file power_state_phidget.py.

power_state_phidget.PowerStatePhidget.pr_next

Definition at line 47 of file power_state_phidget.py.

power_state_phidget.PowerStatePhidget.pub_power_state

Definition at line 44 of file power_state_phidget.py.

power_state_phidget.PowerStatePhidget.sub_analog_sensors

Definition at line 45 of file power_state_phidget.py.

power_state_phidget.PowerStatePhidget.voltage

Definition at line 31 of file power_state_phidget.py.

power_state_phidget.PowerStatePhidget.voltage_bag

Definition at line 51 of file power_state_phidget.py.

power_state_phidget.PowerStatePhidget.voltage_bag_maxlen

Definition at line 50 of file power_state_phidget.py.

float power_state_phidget.PowerStatePhidget.VOLTAGE_COLLECTION_TIME = 6.0
static

Definition at line 28 of file power_state_phidget.py.

power_state_phidget.PowerStatePhidget.voltage_divider_factor

Definition at line 36 of file power_state_phidget.py.

power_state_phidget.PowerStatePhidget.voltage_empty

Definition at line 40 of file power_state_phidget.py.

power_state_phidget.PowerStatePhidget.voltage_full

Definition at line 39 of file power_state_phidget.py.


The documentation for this class was generated from the following file:


cob_phidget_power_state
Author(s): Benjamin Maidel
autogenerated on Wed Apr 7 2021 02:11:45