Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   General Forum (http://www.chiefdelphi.com/forums/forumdisplay.php?f=16)
-   -   Code not deploying properly? (http://www.chiefdelphi.com/forums/showthread.php?t=143465)

JimmyBobJones 08-02-2016 18:50

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

snekiam 08-02-2016 18:51

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.

Dan Waxman 08-02-2016 18:54

Re: Code not deploying properly?
 
You're trying to allocate two or more devices to one PWM port. Fix that and it should work.

JimmyBobJones 08-02-2016 18:59

Re: Code not deploying properly?
 
Quote:

Originally Posted by Dan Waxman (Post 1537203)
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.

JimmyBobJones 08-02-2016 18:59

Re: Code not deploying properly?
 
Quote:

Originally Posted by snekiam (Post 1537197)
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

Stimpy1901 08-02-2016 20:06

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.


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

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