Public Member Functions | Public Attributes
clearpath.horizon.payloads.PowerStatus Class Reference

Horizon Message Payload - Power Status. More...

Inheritance diagram for clearpath.horizon.payloads.PowerStatus:
Inheritance graph
[legend]

List of all members.

Public Member Functions

def __init__
 Create A Horizon Message Payload - Power Status.
def print_format
 Human Readable Payload String.

Public Attributes

 capacities
 Capacity Measurements.
 charges
 Charge Measurements.
 descriptions
 Battery Descriptions.

Detailed Description

Horizon Message Payload - Power Status.

Represents the payload of the data message 'power status'

Warning:
Data should not be modified once created
Since:
0.8
Horizon Message Payload - Power Status

Definition at line 992 of file payloads.py.


Constructor & Destructor Documentation

def clearpath.horizon.payloads.PowerStatus.__init__ (   self,
  charges = [],
  capacities = [],
  descriptions = [],
  raw = None,
  timestamp = 0 
)

Create A Horizon Message Payload - Power Status.

Constructor for the Horizon Message Payload - Power Status Class.
The constructor can be called two different ways:

  • SystemStatus(charges, raw=None, version,...)
    Create a command message payload to send.
  • SystemStatus(raw, version, timestamp)
    Parse raw data (most likely received) into payload variables.
Parameters:
chargesList of battery percentages
capacitiesList of battery capacities
descriptionsList of tuple([present,in_use,type])
rawRaw Payload data byte list to parse
timestampPayload Send / Create Time (milliseconds)
versionHorizon Protocol Version, (-1,*) represents the newest version, (0,0) auto-detect the version (if supported)
Exceptions:
LookupErrorIf auto-detect version fails
ValueErrorIf raw is invalid
Create A Horizon Message Payload - Power Status

Definition at line 1016 of file payloads.py.


Member Function Documentation

Human Readable Payload String.

Return the payload as a human readable string

Reimplemented from clearpath.horizon.payloads.Payload.

Definition at line 1104 of file payloads.py.


Member Data Documentation

Capacity Measurements.

Definition at line 1018 of file payloads.py.

Charge Measurements.

Definition at line 1017 of file payloads.py.

Battery Descriptions.

Definition at line 1019 of file payloads.py.


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


clearpath_base
Author(s): Mike Purvis
autogenerated on Sun Oct 5 2014 22:52:08