Skip to content

Commit

Permalink
Update AluminatiMotorGroup.java
Browse files Browse the repository at this point in the history
  • Loading branch information
CalebHeydon committed Jan 14, 2020
1 parent 8929016 commit bc14caf
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/org/aluminati3555/lib/drivers/AluminatiMotorGroup.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,17 @@ public AluminatiTalonSRX getMasterTalon() {
return (AluminatiTalonSRX) master;
}

/**
* Returns the master spark max
*/
public AluminatiSparkMax getMasterSparkMax() {
if (!(master instanceof AluminatiSparkMax)) {
return null;
}

return (AluminatiSparkMax) master;
}

/**
* Returns the master motor controller
*/
Expand Down

0 comments on commit bc14caf

Please sign in to comment.