Skip to content

Commit 3e58ae9

Browse files
Update 1.3.2
Set "struct" equivalent objects to be public Methods added for getting frame height/width Method to get main line tracking objects
1 parent 0feeab9 commit 3e58ae9

4 files changed

Lines changed: 16 additions & 12 deletions

File tree

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ publishing {
5151
artifact javadocJar
5252
groupId = 'pw.otake.pseudoresonance'
5353
artifactId = 'pixy2-java-api'
54-
version = '1.3.1'
54+
version = '1.3.2'
5555
pom {
5656
name = 'Pixy2JavaAPI'
5757
description = 'Java port of Pixy2 API for FIRST Robotics'

src/main/java/io/github/pseudoresonance/pixy2api/Pixy2.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,14 +312,18 @@ public String getFirmwareTypeString() {
312312
}
313313

314314
/**
315-
* Get width of the pixy's visual frame after it is calcualted during init
315+
* Get width of the pixy's visual frame after initialization
316+
*
317+
* @return Pixy2 Frame Width
316318
*/
317319
public int getFrameWidth() {
318320
return frameWidth;
319321
}
320322

321323
/**
322-
* Get height of the pixy's visual frame after it is calcualted during inits
324+
* Get height of the pixy's visual frame after initialization
325+
*
326+
* @return Pixy2 Frame Height
323327
*/
324328
public int getFrameHeight() {
325329
return frameHeight;

src/main/java/io/github/pseudoresonance/pixy2api/Pixy2CCC.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ public class Block {
155155
* @param index Block index
156156
* @param age Block age
157157
*/
158-
private Block(int signature, int x, int y, int width, int height, int angle, int index, int age) {
158+
public Block(int signature, int x, int y, int width, int height, int angle, int index, int age) {
159159
this.signature = signature;
160160
this.x = x;
161161
this.y = y;

src/main/java/io/github/pseudoresonance/pixy2api/Pixy2Line.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,13 @@ public byte getAllFeatures() {
8888
}
8989

9090
/**
91-
* Gets the main features from the Pixy2. This is a more constrained line tracking algorithm.
91+
* Gets the main features from the Pixy2. This is a more constrained line
92+
* tracking algorithm.
9293
*
9394
* @return Pixy2 error code
9495
*/
95-
public byte getMainFeatures()
96-
{
97-
return getFeatures(LINE_GET_MAIN_FEATURES, LINE_ALL_FEATURES, true);
96+
public byte getMainFeatures() {
97+
return getFeatures(LINE_GET_MAIN_FEATURES, LINE_ALL_FEATURES, true);
9898
}
9999

100100
/**
@@ -347,7 +347,7 @@ public class Vector {
347347
* @param index Vector index
348348
* @param flags Vector flags
349349
*/
350-
private Vector(int x0, int y0, int x1, int y1, int index, int flags) {
350+
public Vector(int x0, int y0, int x1, int y1, int index, int flags) {
351351
this.x0 = x0;
352352
this.y0 = y0;
353353
this.x1 = x1;
@@ -428,7 +428,7 @@ public class IntersectionLine {
428428
* @param reserved Reserved
429429
* @param angle Line angle
430430
*/
431-
private IntersectionLine(int index, int reserved, short angle) {
431+
public IntersectionLine(int index, int reserved, short angle) {
432432
this.index = index;
433433
this.reserved = reserved;
434434
this.angle = angle;
@@ -471,7 +471,7 @@ public class Intersection {
471471
* @param reserved Reserved
472472
* @param lines Array of lines
473473
*/
474-
private Intersection(int x, int y, int number, int reserved, IntersectionLine[] lines) {
474+
public Intersection(int x, int y, int number, int reserved, IntersectionLine[] lines) {
475475
this.x = x;
476476
this.y = y;
477477
this.number = number;
@@ -539,7 +539,7 @@ public class Barcode {
539539
* @param flags Barcode flags
540540
* @param code Code
541541
*/
542-
private Barcode(int x, int y, int flags, int code) {
542+
public Barcode(int x, int y, int flags, int code) {
543543
this.x = x;
544544
this.y = y;
545545
this.flags = flags;

0 commit comments

Comments
 (0)