Structs§
- vision_
object_ s_ t - This structure contains a descriptor of an object detected by the Vision Sensor
- vision_
signature_ s_ t - This structure contains the parameters used by the Vision Sensor to detect objects.
Constants§
- E_
VISION_ OBJECT_ COLOR_ CODE - E_
VISION_ OBJECT_ LINE - E_
VISION_ OBJECT_ NORMAL - E_
VISION_ ZERO_ CENTER - E_
VISION_ ZERO_ TOPLEFT - VISION_
FOV_ HEIGHT - VISION_
FOV_ WIDTH - VISION_
OBJECT_ ERR_ SIG
Functions§
- vision_
clear_ ⚠led - Clears the vision sensor LED color, resetting it back to its default behavior, displaying the most prominent object signature color.
- vision_
create_ ⚠color_ code - Creates a color code that represents a combination of the given signature IDs. If fewer than 5 signatures are to be a part of the color code, pass 0 for the additional function parameters.
- vision_
get_ ⚠by_ code - Gets the nth largest object of the given color code according to size_id.
- vision_
get_ ⚠by_ sig - Gets the nth largest object of the given signature according to size_id.
- vision_
get_ ⚠by_ size - Gets the nth largest object according to size_id.
- vision_
get_ ⚠exposure - Gets the exposure parameter of the Vision Sensor. See https://pros.cs.purdue.edu/v5/tutorials/topical/vision.html#exposure-setting for more details.
- vision_
get_ ⚠object_ count - Gets the number of objects currently detected by the Vision Sensor.
- vision_
get_ ⚠signature - Gets the object detection signature with the given id number.
- vision_
get_ ⚠white_ balance - Get the white balance parameter of the Vision Sensor.
- vision_
print_ ⚠signature - Prints the contents of the signature as an initializer list to the terminal.
- vision_
read_ ⚠by_ code - Reads up to object_count object descriptors into object_arr.
- vision_
read_ ⚠by_ sig - Reads up to object_count object descriptors into object_arr.
- vision_
read_ ⚠by_ size - Reads up to object_count object descriptors into object_arr.
- vision_
set_ ⚠auto_ white_ balance - Enables/disables auto white-balancing on the Vision Sensor.
- vision_
set_ ⚠exposure - Sets the exposure parameter of the Vision Sensor. See https://pros.cs.purdue.edu/v5/tutorials/topical/vision.html#exposure-setting for more details.
- vision_
set_ ⚠led - Sets the vision sensor LED color, overriding the automatic behavior.
- vision_
set_ ⚠signature - Stores the supplied object detection signature onto the vision sensor.
- vision_
set_ ⚠white_ balance - Sets the white balance parameter of the Vision Sensor.
- vision_
set_ ⚠wifi_ mode - Sets the Wi-Fi mode of the Vision sensor
- vision_
set_ ⚠zero_ point - Sets the (0,0) coordinate for the Field of View.
- vision_
signature_ ⚠from_ utility - Creates a signature from the vision sensor utility
Type Aliases§
- vision_
color_ code_ t - Color codes are just signatures with multiple IDs and a different type.
- vision_
object_ type_ e_ t - This enumeration defines the different types of objects that can be detected by the Vision Sensor
- vision_
zero_ e_ t