![]() |
Novice Coder Help
The robot has the code on the roboRio and is connected to the driver station. The joystick is also connected but none of the motors are firing when the joystick is moved.
Here is the code: Code:
package org.usfirst.frc.team4404.robot; |
Re: Novice Coder Help
Do the lights on the motor controllers change colors when you move the joystick?
Have you confirmed that your PWMs are plugged in correctly? |
Re: Novice Coder Help
Quote:
|
Re: Novice Coder Help
The PWM is the black, white, and red cord that goes between the roborio and the motor controller. Is it plugged in properly? The light on the motor controller should change to red or green depending on which way your joystick is.
|
Re: Novice Coder Help
I would recommend printing out the joystick values or going to the USB Devices tab in the driver station to ensure that it is giving actual values. It is possible that your joystick or USB connection is the issue.
|
Re: Novice Coder Help
Code:
isOpen = false;Check if your joystick is really in port 0 in driverStation. |
Re: Novice Coder Help
If the LED's are blinking, you might have the limit switch settings configured wrong or the PWM connection is not hooked up correctly. You should check the cable orientation and read the manual to match the blink code to the operating state of your Spark. It will also tell you how to make sure the limit switch configuration is correct in the manual. Other than the issue with the isOpen variable, your code looks correct. (Keeping in mind I'm not familiar with Java wpilib stuff)
![]() |
| All times are GMT -5. The time now is 03:37. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi