![]() |
Error with joystick controller and driver station
I am the programmer from team Yellow Jacket 3345, the driver station is giving me error about the joysticks are not plug in,but ti is plug in right and all show green but we all check the program is no error.And we don't know the problems.
https://www.dropbox.com/s/5bczzz5frj...nshot.png?dl=1 Code:
package org.usfirst.frc.team3345.robot; |
Re: Error with joystick controller and driver station
Joysticks are indexed starting at 0. Change your Joystick numbers from 1 & 2 to 0 & 1.
|
Re: Error with joystick controller and driver station
Just curious, why do you have TWO RobotDrive objects? RobotDrive does support 4-motor drive. There is no reason to have two RobotDrive objects.
|
Re: Error with joystick controller and driver station
Quote:
Sorry for the long comment, here's a potato (head). .-"'"-. | | (`-._____.-') .. `-._____.-' .. .', :./'.== ==.`\.: ,`. : ( : ___ ___ : ) ; '._.: |0| |0| :._.' / `-'_`-' \ _.| / \ |._ .'.-| ( ) |-.`. //' | .-"`"`-'"`"-. | `\\ || | `~":-...-:"~` | || || \. `---' ./ || || '-._ _.-' || / \ _/ `~:~` \_ / \ ||||\) .-' / \ `-. (/|||| \||| (`.___.')-(`.___.') |||/ '"' `-----' `-----' '"' (Might come out a little mashed) |
Re: Error with joystick controller and driver station
NVM It came out awful, excuse my failure
|
Re: Error with joystick controller and driver station
lol, but about the joystick number i already try to change it to 0 and 1 it still giving me the same error....much cry
|
Re: Error with joystick controller and driver station
Quote:
|
Re: Error with joystick controller and driver station
Quote:
|
Re: Error with joystick controller and driver station
Yep, I already try the port 0 and 1 and the joystick is turning green at the driver station whenever i press it
|
Re: Error with joystick controller and driver station
You have a while(true) in your teleopPeriodic() method. You should do that in an IterativeRobot implementation. Try changing:
Code:
@OverrideCode:
@OverridePaul |
| All times are GMT -5. The time now is 09:50. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi