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

Horizon Message Payload - System Status. More...

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

List of all members.

Public Member Functions

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

Public Attributes

 currents
 temperatures
 uptime
 voltages

Detailed Description

Horizon Message Payload - System Status.

Represents the payload of the data message 'system status'

Warning:
Data should not be modified once created
Since:
0.1
Horizon Message Payload - System Status

Definition at line 879 of file payloads.py.


Constructor & Destructor Documentation

def clearpath.horizon.payloads.SystemStatus.__init__ (   self,
  uptime = 0,
  voltage = [],
  current = [],
  temperature = [],
  raw = None,
  timestamp = 0 
)

Create A Horizon Message Payload - System Status.

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

  • SystemStatus(uptime, voltage, raw=None, version,...)
    Create a command message payload to send.
  • SystemStatus(raw, version, timestamp)
    Parse raw data (most likely received) into payload variables.
Parameters:
currentA list of currents [-320A,320A]
rawRaw Payload data byte list to parse
temperatureA list of temperatures [-320 degC, 320 degC]
timestampPayload Send / Create Time (milliseconds)
uptimeSystem uptime ([0,4294967295] milliseconds)
versionHorizon Protocol Version, (-1,*) represents the newest version, (0,0) auto-detect the version (if supported)
voltageA list of voltages [-320V,320V]
Exceptions:
LookupErrorIf auto-detect version fails
ValueErrorIf raw is invalid
Create A Horizon Message Payload - System Status

Definition at line 905 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 975 of file payloads.py.


Member Data Documentation

Definition at line 905 of file payloads.py.

Definition at line 905 of file payloads.py.

Definition at line 905 of file payloads.py.

Definition at line 905 of file payloads.py.


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


clearpath_base
Author(s): Mike Purvis
autogenerated on Sat Dec 28 2013 16:50:48