Go to Post ps... it is better to have built a robot and lost than to ever played basketball at all - Andy Baker [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 08-02-2016, 18:50
JimmyBobJones JimmyBobJones is offline
Registered User
FRC #6078
 
Join Date: Jan 2016
Location: Holt
Posts: 6
JimmyBobJones is an unknown quantity at this point
Code not deploying properly?

So using Ecplipse when I deploy the code it tells me it's all going well in the console. But the driver station stills shows no robot code. Do we have to reimage the rio? It worked before a couple days ago.

EDIT: Console output: http://pastebin.com/UqkW3PM1

Error Message in Driver Station: http://pastebin.com/f1rTXy8L
Reply With Quote
  #2   Spotlight this post!  
Unread 08-02-2016, 18:51
snekiam snekiam is offline
Registered User
FRC #3322 (Eagle Imperium)
Team Role: Programmer
 
Join Date: Dec 2015
Rookie Year: 2010
Location: SE Michigan
Posts: 85
snekiam has a spectacular aura aboutsnekiam has a spectacular aura aboutsnekiam has a spectacular aura about
Re: Code not deploying properly?

Did you make any code changes? If your code is crashing on startup, it may show that no robot code exists on the Rio.
Reply With Quote
  #3   Spotlight this post!  
Unread 08-02-2016, 18:54
Dan Waxman Dan Waxman is offline
Registered User
FRC #0263 (Aftershock)
Team Role: Programmer
 
Join Date: Feb 2016
Rookie Year: 2016
Location: Long Island
Posts: 30
Dan Waxman is an unknown quantity at this point
Re: Code not deploying properly?

You're trying to allocate two or more devices to one PWM port. Fix that and it should work.
Reply With Quote
  #4   Spotlight this post!  
Unread 08-02-2016, 18:59
JimmyBobJones JimmyBobJones is offline
Registered User
FRC #6078
 
Join Date: Jan 2016
Location: Holt
Posts: 6
JimmyBobJones is an unknown quantity at this point
Re: Code not deploying properly?

Quote:
Originally Posted by Dan Waxman View Post
You're trying to allocate two or more devices to one PWM port. Fix that and it should work.
we don't have the PWM hooked up. A mentor from another established team said we probably don't need it.
Reply With Quote
  #5   Spotlight this post!  
Unread 08-02-2016, 18:59
JimmyBobJones JimmyBobJones is offline
Registered User
FRC #6078
 
Join Date: Jan 2016
Location: Holt
Posts: 6
JimmyBobJones is an unknown quantity at this point
Re: Code not deploying properly?

Quote:
Originally Posted by snekiam View Post
Did you make any code changes? If your code is crashing on startup, it may show that no robot code exists on the Rio.
Here I'll post my code, I don't see why it would be crashing: https://github.com/Jajoo/RoboRams
Reply With Quote
  #6   Spotlight this post!  
Unread 08-02-2016, 20:06
Stimpy1901 Stimpy1901 is offline
Registered User
AKA: Bobby
FRC #2348 (Cool Geeks)
Team Role: Mentor
 
Join Date: Dec 2007
Rookie Year: 2008
Location: Honolulu
Posts: 57
Stimpy1901 will become famous soon enough
Re: Code not deploying properly?

We had this same problem. We found the problem was assigning the PWM ports more than once (as Dan said). The RobotDrive can take motor controllers as parameters, so you would do something like this:

Code:
    	jagFrontLeft = new Jaguar(9);
    	jagFrontRight = new Jaguar(6);
    	jagBackLeft = new Jaguar(7); 
    	jagBackRight = new Jaguar(5); //in your code, this was jagBackLeft again

        myRobot = new RobotDrive(jagFrontLeft,jagFrontRight,jagBackLeft,jagBackRight);
        //The above may not be the correct order as I do not have the Eclipse with me, but hopefully you get the idea
I do wish it would not compile and the error would be flagged sooner.
__________________
"The person who says it cannot be done should not interrupt the person doing it."
- Chinese Proverb

Last edited by Stimpy1901 : 08-02-2016 at 20:08.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 14:07.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi