org.robokind.impl.motion.openservo.feedback
Class OpenServoCache

java.lang.Object
  extended by org.robokind.impl.motion.openservo.feedback.OpenServoCache
All Implemented Interfaces:
MoveParams<OpenServo.Id>

public class OpenServoCache
extends Object
implements MoveParams<OpenServo.Id>

Author:
Matthew Stevenson

Constructor Summary
OpenServoCache(OpenServo.Id id)
           
 
Method Summary
 long getCommandDelayMillisec()
          Command Delay is the estimated number of milliseconds between sending a move command and when the servo responds to the command.
 long getCurPosTimestampUTC()
           
 int getCurrentLoad()
           
 int getCurrentPosition()
           
 int getCurrentSpeed()
           
 int getCurrentTemperature()
           
 int getCurrentVoltage()
           
 OpenServoFeedbackValues getFeedback()
           
 int getGoalPosition()
           
 long getGoalTargetTimeUTC()
           
 int getPrevGoalPosition()
           
 long getPrevGoalTargetTimeUTC()
           
 OpenServo.Id getServoId()
           
 void goalsSent()
           
 void setCommandDelayMillisec(long msec)
          Command Delay is the estimated number of milliseconds between sending a move command and when the servo responds to the command.
 void setFeedbackVals(OpenServoFeedbackValues vals)
           
 void setGoalVals(GoalUpdateValues vals)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OpenServoCache

public OpenServoCache(OpenServo.Id id)
Method Detail

getServoId

public OpenServo.Id getServoId()
Specified by:
getServoId in interface MoveParams<OpenServo.Id>

setFeedbackVals

public void setFeedbackVals(OpenServoFeedbackValues vals)

setGoalVals

public void setGoalVals(GoalUpdateValues vals)

goalsSent

public void goalsSent()
Specified by:
goalsSent in interface MoveParams<OpenServo.Id>

getCurrentPosition

public int getCurrentPosition()
Specified by:
getCurrentPosition in interface MoveParams<OpenServo.Id>

getCurrentSpeed

public int getCurrentSpeed()
Specified by:
getCurrentSpeed in interface MoveParams<OpenServo.Id>

getCurrentVoltage

public int getCurrentVoltage()
Specified by:
getCurrentVoltage in interface MoveParams<OpenServo.Id>

getCurrentTemperature

public int getCurrentTemperature()
Specified by:
getCurrentTemperature in interface MoveParams<OpenServo.Id>

getCurrentLoad

public int getCurrentLoad()
Specified by:
getCurrentLoad in interface MoveParams<OpenServo.Id>

getCommandDelayMillisec

public long getCommandDelayMillisec()
Description copied from interface: MoveParams
Command Delay is the estimated number of milliseconds between sending a move command and when the servo responds to the command.

Specified by:
getCommandDelayMillisec in interface MoveParams<OpenServo.Id>

getCurPosTimestampUTC

public long getCurPosTimestampUTC()
Specified by:
getCurPosTimestampUTC in interface MoveParams<OpenServo.Id>

getPrevGoalTargetTimeUTC

public long getPrevGoalTargetTimeUTC()
Specified by:
getPrevGoalTargetTimeUTC in interface MoveParams<OpenServo.Id>

getPrevGoalPosition

public int getPrevGoalPosition()
Specified by:
getPrevGoalPosition in interface MoveParams<OpenServo.Id>

getGoalTargetTimeUTC

public long getGoalTargetTimeUTC()
Specified by:
getGoalTargetTimeUTC in interface MoveParams<OpenServo.Id>

getGoalPosition

public int getGoalPosition()
Specified by:
getGoalPosition in interface MoveParams<OpenServo.Id>

getFeedback

public OpenServoFeedbackValues getFeedback()

setCommandDelayMillisec

public void setCommandDelayMillisec(long msec)
Command Delay is the estimated number of milliseconds between sending a move command and when the servo responds to the command.

Parameters:
msec -


Copyright © 2011-2013. All Rights Reserved.