BowlerKernel
|
Classes | |
class | powerOverridePacket |
Private Member Functions | |
boolean | validate () |
void | firePositionUpdate (int pos, double time) |
Private Attributes | |
ArrayList< IServoPositionUpdateListener > | listeners = new ArrayList<IServoPositionUpdateListener >() |
The Class ServoChannel.
Definition at line 32 of file ServoChannel.java.
com.neuronrobotics.sdk.dyio.peripherals.ServoChannel.ServoChannel | ( | int | channel | ) |
Constructor. Creates an counter input input channel that is syncronous only by default.
channel | - the channel object requested from the DyIO |
Definition at line 43 of file ServoChannel.java.
References com.neuronrobotics.sdk.dyio.peripherals.DyIOAbstractPeripheral.channel, com.neuronrobotics.sdk.dyio.peripherals.DyIOAbstractPeripheral.getChannel(), and com.neuronrobotics.sdk.common.DeviceManager.getSpecificDevice().
com.neuronrobotics.sdk.dyio.peripherals.ServoChannel.ServoChannel | ( | DyIO | dyio, |
int | channel | ||
) |
Constructor. Creates an counter input input channel that is syncronous only by default.
dyio | the dyio |
channel | - the channel object requested from the DyIO |
Definition at line 54 of file ServoChannel.java.
References com.neuronrobotics.sdk.dyio.peripherals.DyIOAbstractPeripheral.channel, and com.neuronrobotics.sdk.dyio.DyIO.getChannel().
com.neuronrobotics.sdk.dyio.peripherals.ServoChannel.ServoChannel | ( | DyIOChannel | channel | ) |
Instantiates a new servo channel.
channel | the channel |
Definition at line 63 of file ServoChannel.java.
References com.neuronrobotics.sdk.dyio.DyIOChannel.addChannelEventListener(), com.neuronrobotics.sdk.dyio.peripherals.DyIOAbstractPeripheral.channel, com.neuronrobotics.sdk.dyio.DyIOChannelMode.SERVO_OUT, com.neuronrobotics.sdk.dyio.DyIOChannel.setDap(), and com.neuronrobotics.sdk.dyio.peripherals.DyIOAbstractPeripheral.setMode().
void com.neuronrobotics.sdk.dyio.peripherals.ServoChannel.addIServoPositionUpdateListener | ( | IServoPositionUpdateListener | l | ) |
THis method allows you to listen to servo setpoint changes.
l | the l |
Definition at line 154 of file ServoChannel.java.
References com.neuronrobotics.sdk.dyio.peripherals.ServoChannel.listeners.
Referenced by com.neuronrobotics.sdk.dyio.sequencer.ServoOutputScheduleChannel.addIServoPositionUpdateListener().
void com.neuronrobotics.sdk.dyio.peripherals.ServoChannel.disablePowerOverride | ( | ) |
This method allows you to re enable the lock-out.
Definition at line 181 of file ServoChannel.java.
References com.neuronrobotics.sdk.dyio.peripherals.DyIOAbstractPeripheral.getChannel(), com.neuronrobotics.sdk.dyio.DyIOChannel.getDevice(), and com.neuronrobotics.sdk.dyio.DyIO.send().
void com.neuronrobotics.sdk.dyio.peripherals.ServoChannel.enablePowerOverride | ( | ) |
This method allows you to override the servo voltage lock-out it is enabled by default.
Definition at line 174 of file ServoChannel.java.
References com.neuronrobotics.sdk.dyio.peripherals.DyIOAbstractPeripheral.getChannel(), com.neuronrobotics.sdk.dyio.DyIOChannel.getDevice(), and com.neuronrobotics.sdk.dyio.DyIO.send().
|
private |
Fire position update.
pos | the pos |
time | the time |
Definition at line 143 of file ServoChannel.java.
References com.neuronrobotics.sdk.dyio.peripherals.ServoChannel.listeners.
Referenced by com.neuronrobotics.sdk.dyio.peripherals.ServoChannel.onChannelEvent().
boolean com.neuronrobotics.sdk.dyio.peripherals.ServoChannel.hasAsync | ( | ) |
This method is to check if this peripheral is capable to be set as up as asynchronous.
Reimplemented from com.neuronrobotics.sdk.dyio.peripherals.DyIOAbstractPeripheral.
Definition at line 133 of file ServoChannel.java.
void com.neuronrobotics.sdk.dyio.peripherals.ServoChannel.onChannelEvent | ( | DyIOChannelEvent | e | ) |
On channel event.
e | the e |
Implements com.neuronrobotics.sdk.dyio.IChannelEventListener.
Definition at line 206 of file ServoChannel.java.
References com.neuronrobotics.sdk.dyio.peripherals.ServoChannel.firePositionUpdate(), and com.neuronrobotics.sdk.dyio.DyIOChannelEvent.getUnsignedValue().
void com.neuronrobotics.sdk.dyio.peripherals.ServoChannel.removeIServoPositionUpdateListener | ( | IServoPositionUpdateListener | l | ) |
removes a specified listener.
l | the l |
Definition at line 165 of file ServoChannel.java.
References com.neuronrobotics.sdk.dyio.peripherals.ServoChannel.listeners.
Referenced by com.neuronrobotics.sdk.dyio.sequencer.ServoOutputScheduleChannel.removeIServoPositionUpdateListener().
boolean com.neuronrobotics.sdk.dyio.peripherals.ServoChannel.SetPosition | ( | int | pos | ) |
Set the servo to a given position.
pos | the pos |
Definition at line 78 of file ServoChannel.java.
Referenced by com.neuronrobotics.sdk.dyio.sequencer.CoreScheduler.addServoChannel(), com.neuronrobotics.sdk.addons.irobot.CreateArm.check(), com.neuronrobotics.sdk.dyio.sequencer.ServoOutputScheduleChannel.flush(), com.neuronrobotics.sdk.addons.irobot.CreateArm.gripClose(), com.neuronrobotics.sdk.addons.irobot.CreateArm.gripOpen(), com.neuronrobotics.sdk.addons.irobot.CreateArm.setAngles(), com.neuronrobotics.sdk.dyio.peripherals.ServoChannel.SetPosition(), and com.neuronrobotics.sdk.dyio.sequencer.ServoOutputScheduleChannel.sync().
boolean com.neuronrobotics.sdk.dyio.peripherals.ServoChannel.SetPosition | ( | int | pos, |
double | time | ||
) |
Steps the servo though a transformation over a given amount of time.
pos | - the end position |
time | - the number of seconds for the transition to take place |
Definition at line 88 of file ServoChannel.java.
References com.neuronrobotics.sdk.dyio.peripherals.ServoChannel.SetPosition().
boolean com.neuronrobotics.sdk.dyio.peripherals.ServoChannel.SetPosition | ( | int | pos, |
float | time | ||
) |
Steps the servo though a transformation over a given amount of time.
pos | - the end position |
time | - the number of seconds for the transition to take place |
Definition at line 99 of file ServoChannel.java.
References com.neuronrobotics.sdk.dyio.peripherals.DyIOAbstractPeripheral.flush(), com.neuronrobotics.sdk.dyio.peripherals.DyIOAbstractPeripheral.getChannel(), com.neuronrobotics.sdk.dyio.DyIOChannel.setCachedTime(), com.neuronrobotics.sdk.dyio.DyIOChannel.setCachedValue(), and com.neuronrobotics.sdk.dyio.peripherals.ServoChannel.validate().
|
private |
Validate.
Definition at line 122 of file ServoChannel.java.
References com.neuronrobotics.sdk.dyio.peripherals.DyIOAbstractPeripheral.getMode(), com.neuronrobotics.sdk.dyio.peripherals.DyIOAbstractPeripheral.isEnabled(), and com.neuronrobotics.sdk.dyio.DyIOChannelMode.SERVO_OUT.
Referenced by com.neuronrobotics.sdk.dyio.peripherals.ServoChannel.SetPosition().
|
private |
The listeners.
Definition at line 35 of file ServoChannel.java.
Referenced by com.neuronrobotics.sdk.dyio.peripherals.ServoChannel.addIServoPositionUpdateListener(), com.neuronrobotics.sdk.dyio.peripherals.ServoChannel.firePositionUpdate(), and com.neuronrobotics.sdk.dyio.peripherals.ServoChannel.removeIServoPositionUpdateListener().