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

Horizon Message Payload - Differential Control. More...

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

List of all members.

Public Member Functions

def __init__
 Create A Horizon Message Payload - Differential Control.
def print_format
 Human Readable Payload String.

Public Attributes

 left_d
 left_f
 left_ffwd
 left_i
 left_l
 left_p
 left_s
 left_sat
 left_stic
 right_d
 right_ffwd
 right_i
 right_p
 right_sat
 right_stic

Detailed Description

Horizon Message Payload - Differential Control.

Represents the payload of the command and data messages 'differential control'

Warning:
Data should not be modified once created
Horizon Message Payload - Differential Control

Definition at line 1389 of file payloads.py.


Constructor & Destructor Documentation

def clearpath.horizon.payloads.DifferentialControl.__init__ (   self,
  left_p = 0.0,
  left_i = 0.0,
  left_d = 0.0,
  left_ffwd = 0.0,
  left_stic = 0.0,
  left_sat = 0.0,
  right_p = 0.0,
  right_i = 0.0,
  right_d = 0.0,
  right_ffwd = 0.0,
  right_stic = 0.0,
  right_sat = 0.0,
  raw = None,
  timestamp = 0 
)

Create A Horizon Message Payload - Differential Control.

Constructor for the Horizon Message Payload - Differential Control.
The constructor can be called two different ways:

  • DifferentialControl(l_p, l_d, r_i, raw=None,...)
    Create a command message payload to send.
  • DifferentialControl(raw, version, timestamp)
    Parse raw data (most likely received) into payload variables.
Parameters:
left_dLeft derivative constant
left_ffwdLeft ffwd-forward constant
left_iLeft integral constant
left_satLeft integral sat
left_pLeft proportional constant
left_sticLeft stic compenstation
right_dRight derivative constant
right_ffwdRight ffwd-forward constant
right_iRight integral constant
right_satRight integral sat
right_pRight proportional constant
right_sticRight stic compenstation
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 values are out of range or if raw is invalid
Create A Horizon Message Payload - Differential Control

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


Member Data Documentation

Definition at line 1422 of file payloads.py.

Definition at line 1422 of file payloads.py.

Definition at line 1422 of file payloads.py.

Definition at line 1422 of file payloads.py.

Definition at line 1422 of file payloads.py.

Definition at line 1422 of file payloads.py.

Definition at line 1422 of file payloads.py.

Definition at line 1422 of file payloads.py.

Definition at line 1422 of file payloads.py.

Definition at line 1422 of file payloads.py.

Definition at line 1422 of file payloads.py.

Definition at line 1422 of file payloads.py.

Definition at line 1422 of file payloads.py.

Definition at line 1422 of file payloads.py.

Definition at line 1422 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