![]() |
Java Motor Control Troubles
My team is having trouble using java. We can't set a regular/not-CAN Jaguar motor controller's speed. It says it can't find the module and port. Are there any simple examples where we can test only 1 motor controller with a joystick? Most of the samples want multiple devices. We are still doing baby steps.
|
Make sure that you are using module number 1 for the first digital module regardless of what slot it's in. Also, if you upload your code we can take a look.
Brad |
Re: Java Motor Control Troubles
Quote:
first thing under your public class put Code:
Joystick joystick1;Code:
public void robotInit {Code:
import edu.wpi.first.wpilibj.Victor;Code:
while(isOperatorControl) { |
Re: Java Motor Control Troubles
Sorry, about being vague in the first post. I was in rush.
It turns out we forgot to move the modules from last year's slots after re-imaging. Then, we used motor_controller = new MotorController(int slot, int channel) instead of motor_controller = new MotorController( int channel). The motor moves, now. :) |
| 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