Classes | Functions | Variables
laptop_battery Namespace Reference

Classes

class  LaptopBatteryMonitor

Functions

def _check_battery_info
def _check_battery_state
def _laptop_charge_to_diag
def _read_number
def _read_string
def _strip_A
def _strip_Ah
def _strip_V
def slerp

Variables

tuple bm = LaptopBatteryMonitor()
dictionary diag_level_to_msg
tuple r = rospy.Rate(1.0)
dictionary state_to_val

Function Documentation

def laptop_battery._check_battery_info (   _battery_acpi_path) [private]

Definition at line 108 of file laptop_battery.py.

def laptop_battery._check_battery_state (   _battery_acpi_path) [private]
@return LaptopChargeStatus

Definition at line 143 of file laptop_battery.py.

def laptop_battery._laptop_charge_to_diag (   laptop_msg) [private]

Definition at line 197 of file laptop_battery.py.

def laptop_battery._read_number (   filename,
  default = 0 
) [private]

Definition at line 101 of file laptop_battery.py.

def laptop_battery._read_string (   filename,
  default = "" 
) [private]

Definition at line 93 of file laptop_battery.py.

def laptop_battery._strip_A (   raw_val) [private]

Definition at line 73 of file laptop_battery.py.

def laptop_battery._strip_Ah (   raw_val) [private]

Definition at line 51 of file laptop_battery.py.

def laptop_battery._strip_V (   raw_val) [private]

Definition at line 64 of file laptop_battery.py.

def laptop_battery.slerp (   filename)

Definition at line 86 of file laptop_battery.py.


Variable Documentation

Definition at line 303 of file laptop_battery.py.

Initial value:
00001 { DiagnosticStatus.OK:    'OK', 
00002                       DiagnosticStatus.WARN:  'Warning',
00003                       DiagnosticStatus.ERROR: 'Error'    }

Definition at line 139 of file laptop_battery.py.

tuple laptop_battery::r = rospy.Rate(1.0)

Definition at line 305 of file laptop_battery.py.

Initial value:
00001 {'charged':     LaptopChargeStatus.CHARGED,
00002                 'full':        LaptopChargeStatus.CHARGED, 
00003                 'charging':    LaptopChargeStatus.CHARGING, 
00004                 'discharging': LaptopChargeStatus.DISCHARGING,
00005                 'unknown':     LaptopChargeStatus.CHARGING, }

Definition at line 133 of file laptop_battery.py.



linux_hardware
Author(s): Daniel Stonier
autogenerated on Fri Aug 28 2015 13:25:04