|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface BladeSet
| Method Summary | |
|---|---|
void |
addHallSensorListener(HallSensorListener l)
|
void |
addMovementHistoryListener(MovementHistoryListener l)
|
BladeSetConfiguration |
getBladeSetConfiguration()
Get the configuration of the BladeSet. |
float |
getCurrentPosition()
Get the current position of the BladeSet |
int |
getIndex()
|
void |
moveToPosition(float position,
float moveTime)
Move the blade set to the specified position |
void |
removeHallSensorListener(HallSensorListener l)
|
void |
removeMovementHistoryListener(MovementHistoryListener l)
|
void |
setIndex(int index)
Set the index of the BladeSet This specifies which BladeSet is being used and causes it to be initialized with its set of configuration parameters. |
| Method Detail |
|---|
float getCurrentPosition()
void moveToPosition(float position,
float moveTime)
throws IllegalArgumentException
position - Position of the leading blade to move to.
This is a number [0,1] where 0 means fully open and
1 is fully closed.moveTime - How long it should take in seconds reach the position.
IllegalArgumentException - if the position is not in [0,1].void addMovementHistoryListener(MovementHistoryListener l)
void removeMovementHistoryListener(MovementHistoryListener l)
void addHallSensorListener(HallSensorListener l)
void removeHallSensorListener(HallSensorListener l)
void setIndex(int index)
int getIndex()
BladeSetConfiguration getBladeSetConfiguration()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||