Public Member Functions | Public Attributes | Private Attributes | List of all members
cob_dashboard.cob_battery.COBBattery Class Reference
Inheritance diagram for cob_dashboard.cob_battery.COBBattery:
Inheritance graph
[legend]

Public Member Functions

def __init__ (self, context)
 
def set_power_state (self, msg)
 
def set_stale (self)
 

Public Attributes

 charging
 

Private Attributes

 _charging
 
 _time_remaining
 

Detailed Description

Dashboard widget to display COB battery state.

Definition at line 24 of file cob_battery.py.

Constructor & Destructor Documentation

def cob_dashboard.cob_battery.COBBattery.__init__ (   self,
  context 
)
:param context: the plugin context
:type context: qt_gui.plugin.Plugin

Definition at line 29 of file cob_battery.py.

Member Function Documentation

def cob_dashboard.cob_battery.COBBattery.set_power_state (   self,
  msg 
)
Sets button state based on msg

:param msg: message containing the power state of the COB
:type msg: cob_msgs.PowerState

Definition at line 42 of file cob_battery.py.

def cob_dashboard.cob_battery.COBBattery.set_stale (   self)

Definition at line 62 of file cob_battery.py.

Member Data Documentation

cob_dashboard.cob_battery.COBBattery._charging
private

Definition at line 36 of file cob_battery.py.

cob_dashboard.cob_battery.COBBattery._time_remaining
private

Definition at line 35 of file cob_battery.py.

cob_dashboard.cob_battery.COBBattery.charging

Definition at line 58 of file cob_battery.py.


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


cob_dashboard
Author(s): Alexander Bubeck
autogenerated on Wed Apr 7 2021 03:03:02