Advertisement
Lyphiard

Untitled

Jan 20th, 2019
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. import com.revrobotics.CANSparkMax;
  2. import com.revrobotics.CANSparkMaxLowLevel;
  3.  
  4. public class SampleSubsystem {
  5.  
  6. private CANSparkMax master;
  7. private CANSparkMax follower;
  8.  
  9. public SampleSubsystem() {
  10. this.master = new CANSparkMax(0, CANSparkMaxLowLevel.MotorType.kBrushless);
  11. this.follower = new CANSparkMax(1, CANSparkMaxLowLevel.MotorType.kBrushless);
  12.  
  13. this.master.follow(CANSparkMax.ExternalFollower.kFollowerDisabled, 0);
  14. this.follower.follow(this.master);
  15. }
  16.  
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement