![]() |
Using Jaguar() instead of RobotDrive()
I was wondering if there's any difference using just RobotDrive(1,2,3,4) (what we currently do) and making Jaguar(1) for motor then use that instead.
This is how our code is right now. Your feedback's are appreciated. Let me know if there's anything better I could do (in the whole project). |
Re: Using Jaguar() instead of RobotDrive()
Jaguar is used to control individual Jaguars. Robot Drive uses the Jaguar class to make a basic drive system to get you started.
|
Re: Using Jaguar() instead of RobotDrive()
well if you used 4 separate Jaguar objects the only difference is having to make the driving methods yourself, or making an alternative setup for driving the Jaguars, with RobotDrive the methods are already there.
I make the 4 Jaguar objects and then use those for the robot Drive as shown. Code:
Jaguar leftFront = new Jaguar(3);Code for a DriveTrain I wrote for testing: Code:
package edu.wpi.first.wpilibj.test; |
| All times are GMT -5. The time now is 22:21. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi