Skip to content

Commit

Permalink
Add getters on velocity message
Browse files Browse the repository at this point in the history
  • Loading branch information
Douglasdc3 committed Oct 17, 2022
1 parent 9bc8047 commit b433fb2
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,20 @@ public void apply(Track track) {
.setVy(yVelocity);
}
}

public boolean isVxAvailable() {
return xVelocityAvailable;
}

public int getVx() {
return xVelocity;
}

public boolean isVyAvailable() {
return yVelocityAvailable;
}

public int getVy() {
return yVelocity;
}
}

0 comments on commit b433fb2

Please sign in to comment.