Public Member Functions | |
def | __init__ |
def | append_voltage_bag |
def | calculate_power_consumption |
def | calculate_relative_remaining_capacity |
def | calculate_voltage |
def | phidget_cb |
def | publish |
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 |
Definition at line 24 of file power_state_phidget.py.
def power_state_phidget.PowerStatePhidget.__init__ | ( | self | ) |
Definition at line 30 of file power_state_phidget.py.
def power_state_phidget.PowerStatePhidget.append_voltage_bag | ( | self, | |
num | |||
) |
Definition at line 53 of file power_state_phidget.py.
Definition at line 110 of file power_state_phidget.py.
Definition at line 116 of file power_state_phidget.py.
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.
Definition at line 30 of file power_state_phidget.py.
Definition at line 30 of file power_state_phidget.py.
Definition at line 30 of file power_state_phidget.py.
Definition at line 30 of file power_state_phidget.py.
Definition at line 30 of file power_state_phidget.py.
Definition at line 30 of file power_state_phidget.py.
Definition at line 30 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.
Definition at line 30 of file power_state_phidget.py.
Definition at line 30 of file power_state_phidget.py.
Definition at line 30 of file power_state_phidget.py.
Definition at line 30 of file power_state_phidget.py.
Definition at line 30 of file power_state_phidget.py.
Definition at line 30 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.
Definition at line 30 of file power_state_phidget.py.
Definition at line 30 of file power_state_phidget.py.
Definition at line 30 of file power_state_phidget.py.