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 111 of file laptop_battery.py.

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

Definition at line 138 of file laptop_battery.py.

def laptop_battery._laptop_charge_to_diag (   laptop_msg) [private]

Definition at line 182 of file laptop_battery.py.

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

Definition at line 104 of file laptop_battery.py.

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

Definition at line 96 of file laptop_battery.py.

def laptop_battery._strip_A (   raw_val) [private]

Definition at line 76 of file laptop_battery.py.

def laptop_battery._strip_Ah (   raw_val) [private]

Definition at line 54 of file laptop_battery.py.

def laptop_battery._strip_V (   raw_val) [private]

Definition at line 67 of file laptop_battery.py.

def laptop_battery.slerp (   filename)

Definition at line 89 of file laptop_battery.py.


Variable Documentation

Definition at line 288 of file laptop_battery.py.

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

Definition at line 134 of file laptop_battery.py.

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

Definition at line 290 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 128 of file laptop_battery.py.



linux_hardware
Author(s): Daniel Stonier
autogenerated on Mon Oct 6 2014 08:01:08