Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions src/main/java/io/github/pseudoresonance/pixy2api/Pixy2.java
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,20 @@ public String getFirmwareTypeString() {
}
}

/**
* Get width of the pixy's visual frame after it is calcualted during init
*/
public int getFrameWidth() {
return frameWidth;
}

/**
* Get height of the pixy's visual frame after it is calcualted during inits
*/
public int getFrameHeight() {
return frameHeight;
}

/**
* Synchronizes communication with Pixy2
*
Expand Down
10 changes: 10 additions & 0 deletions src/main/java/io/github/pseudoresonance/pixy2api/Pixy2Line.java
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,16 @@ public byte getAllFeatures() {
return getFeatures(LINE_GET_ALL_FEATURES, LINE_ALL_FEATURES, true);
}

/**
* Gets the main features from the Pixy2. This is a more constrained line tracking algorithm.
*
* @return Pixy2 error code
*/
public byte getMainFeatures()
{
return getFeatures(LINE_GET_MAIN_FEATURES, LINE_ALL_FEATURES, true);
}

/**
* Gets specified features from Pixy2
*
Expand Down