|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: Extremely Broken Code Please Help!
Okay so I applied those changes and have updated the code here:
https://github.com/FranklinMarquette/Robot2016 And it returns this error: Quote:
|
|
#2
|
||||
|
||||
|
Re: Extremely Broken Code Please Help!
Just a quick question. Are you reading the errors or just posting them here? It's ok if you are because they aren't the most lovely things to read (though you should try. It'll be much faster) What it's giving you is what's called a stack trace. It basically tells you the path the code took before it got an error. I've added a comment on what the error tells you.
Code:
ERROR Unhandled exception: java.lang.IllegalArgumentException: Subsystem must not be null. at [ edu.wpi.first.wpilibj.command.Command.requires(Com mand.java:194), #6 org.usfirst.frc.team4623.robot.commands.Extend.<in it>(Extend.java:16), #5 ^------------This is the file-------------------------^---------------Line #- ^ org.usfirst.frc.team4623.robot.OI.<init>(OI.java:5 6), #4 org.usfirst.frc.team4623.robot.Robot.robotInit(Rob ot.java:44), #3 du.wpi.first.wpilibj.IterativeRobot.startCompetit ion(IterativeRobot.java:72), #2 edu.wpi.first.wpilibj.RobotBase.main(RobotBase.jav a:241)] #1 Code:
requires(Robot.pnue); Last edited by TimTheGreat : 25-01-2016 at 20:25. |
|
#3
|
|||
|
|||
|
Re: Extremely Broken Code Please Help!
I'm having the same problem. Compiles just fine but red light on driver station robot code.
When I comment out everything in public OI{}, I get green light on driver station robot code. But why?? TimTheGreat: What do you mean by "Try putting OI after everything"? Thanks for your reply! |
|
#4
|
||||
|
||||
|
Re: Extremely Broken Code Please Help!
Quote:
Code:
oi = new OI();
pnue = new Pnuematics();
|
|
#5
|
||||
|
||||
|
Re: Extremely Broken Code Please Help!
Okay that makes perfect sense. I did trace it back and could deduct that it had something to do with the extend class but never thought of movie the onus constructor
Thanks |
|
#6
|
|||
|
|||
|
Re: Extremely Broken Code Please Help!
Yes! That worked! Thanks so much, TimTheGreat!!!
|
|
#7
|
||||
|
||||
|
Re: Extremely Broken Code Please Help!
Glad I could help
![]() |
|
#8
|
||||
|
||||
|
Re: Extremely Broken Code Please Help!
Okay so moving that fixed it. Now the pnuematics are not working.
What does this error mean? Quote:
Thanks again, Franklin |
|
#9
|
||||
|
||||
|
Re: Extremely Broken Code Please Help!
Is your code up to date in the github repo?
PS: A good way of reaching me is on the Freenode IRC channel #robotpy. If you're on then you can have quick discussion which is a lot faster than CD Last edited by TimTheGreat : 27-01-2016 at 17:24. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|