CuttleRevHub
Object that represents a Rev Robotics Control or Expansion hub. This is the basis of the Cuttlefish device architecture.
Constructors
Types
Functions
Link copied to clipboard
Make the LED on the hub blink a certain color
Link copied to clipboard
Enable/disable the signal being sent to a servo
Link copied to clipboard
Return a analog sensor with port and hub set
Link copied to clipboard
Return a configured analog encoder
Link copied to clipboard
Get the current being drawn by the hub WARNING: This will poll the hub costing an extra 3ms
Link copied to clipboard
Get the voltage of the battery WARNING: This will poll the hub costing an extra 3ms
Link copied to clipboard
Return a digital sensor with port and hub set
Link copied to clipboard
Return an encoder with port counts, and hub set
Link copied to clipboard
Return a motor with port and hub set
Link copied to clipboard
Returns the current being drawn by a motor
Link copied to clipboard
Return a configured servo by port
Link copied to clipboard
open fun onModuleStateChange(module: RobotArmingStateNotifier, state: RobotArmingStateNotifier.ARMINGSTATE)
Link copied to clipboard
Pull bulk data from the hub.
Link copied to clipboard
Send command to the hub (If response needed, use sendCommandReceiveSync)
Link copied to clipboard
Send command to the hub and returns response (If no response needed, use sendCommand)
Link copied to clipboard
Set the speed of all I2C channels.
Set speed of a specific I2C channel.
Link copied to clipboard
Set the color of the LED on the hub
Link copied to clipboard
Set the power of a motor
Link copied to clipboard
Set the zero power behaviour of the motor
Link copied to clipboard
Set the position of a servo
Link copied to clipboard
Link copied to clipboard
Set the blink pattern of the LED to a 16-step rainbow