Go to Post "Congratulations to our FIRST team coming back from the championships in St. Louis." (We all applaud) "Remember, if you're not FIRST, you're last!" - Our pilot on the second plane back home. - demosthenes2k8 [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
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 22-01-2017, 13:44
Andrew01377's Avatar
Andrew01377 Andrew01377 is offline
Maker of the robots on Computer
AKA: Andrew
FRC #3633 (Catalyst 3633)
Team Role: CAD
 
Join Date: May 2015
Rookie Year: 2014
Location: Albert Lea
Posts: 9
Andrew01377 is an unknown quantity at this point
Unhappy RoboRio and Radio Troubles

1/21: I'm having trouble with our RoboRio, and connecting to the Radio. All the wiring is correct but, our Radio is just not connecting to the RoboRio. I've already flashed the RoboRio, and configured the Radio.
When I was trying to connect wireless I can get connection to the Radio but when I try to Build the code it can't locate the RoboRio and the build fails.
I am able to connect to the RoboRio with the cable that I used to Image the Robot but, when that is disconnected I lose both connection and code on the DriverStation. I am lost with what is wrong at this point.

1/22: So still having trouble with trying to get them connected. We have tried restarting the Computer, gone through power cycles, tried following the wiring from last years robot. We talked to our old programmer and still had no idea what was going on. We are using C++, and currently we have the code as

Code
class Robot: public SampleRobot
{
Joystick* Stick;
Joystick* xbox;
Talon *LeftFront;
Talon *RightFront;
Talon *LeftBack;
Talon *RightBack;

public:

Robot(){
Stick=Joystick(0);
xbox=Joystick(1);
LeftFront= new Talon(0);
RightFront= new Talon(1);
LeftBack= new Talon(2);
RightBack= new Talon(3);
}
void operatorControl() {
while(IsOperatorControl()&& IsEnabled()){
LeftFront->Set(1);
RightFront->Set(1);
LeftBack->Set(1);
RightBack-Set(1);
Wait(0.01);
}
}
};

We put the code like this in an attempt to just connect and getting the wheels moving, but when we did and deployed the code (wired) none of the wheels moved. At this point we are lost at what the situation could be, and we are just trying to get some communications between the two, or get the Robot to move just in general.
__________________
Apart of FIRST since 2014.
"You will be given a very hard problem. Use it well" ~Woodie Flowers

Last edited by Andrew01377 : 22-01-2017 at 18:36.
Reply With Quote
  #2   Spotlight this post!  
Unread 23-01-2017, 13:25
WilliamFRC4065's Avatar
WilliamFRC4065 WilliamFRC4065 is offline
Registered User
FRC #4065 (The Nerds of Prey)
Team Role: Programmer
 
Join Date: Jan 2017
Rookie Year: 2016
Location: Florida
Posts: 7
WilliamFRC4065 is an unknown quantity at this point
Lightbulb A fix that just might work.

Hey Andrew! Seems like you might not have gone into the RoboRio itself and assigned the CAN Talon's to their correct ports. The easiest way to do so is to go to this URL in internet explorer when CONNECTED to the RoboRio ( Best bet would be Ethernet while doing this ) After getting in you should be able to assign the Talon's Ports. If you have done this already let me know and I'll see if I can think of anything else that could be affecting it.

Example:
Code:
void RobotInit(){
CANTalon* motor1 = new CANTalon(1);
}
Then you would have to go inside the RoboRio ( Make sure its UPDATED to the latest firmware as well ) and assign the Talon that is set to Port 0 to Port 1

Hope this helps!
Reply With Quote
  #3   Spotlight this post!  
Unread 23-01-2017, 13:28
WilliamFRC4065's Avatar
WilliamFRC4065 WilliamFRC4065 is offline
Registered User
FRC #4065 (The Nerds of Prey)
Team Role: Programmer
 
Join Date: Jan 2017
Rookie Year: 2016
Location: Florida
Posts: 7
WilliamFRC4065 is an unknown quantity at this point
Re: A fix that just might work.

And as for the radio, make sure its plugged into the 804.1 port and not the 18-Somthing port, it may be your problem.
Reply With Quote
  #4   Spotlight this post!  
Unread 23-01-2017, 16:52
pjman18 pjman18 is offline
Registered User
AKA: Parker
FRC #3633 (Catalyst)
Team Role: Programmer
 
Join Date: Jan 2017
Rookie Year: 2015
Location: Minnesota
Posts: 2
pjman18 is an unknown quantity at this point
Re: A fix that just might work.

Quote:
Originally Posted by WilliamFRC4065 View Post
Hey Andrew! Seems like you might not have gone into the RoboRio itself and assigned the CAN Talon's to their correct ports. The easiest way to do so is to go to this URL in internet explorer
Hope this helps!
Hey William, I am the programmer from the team that Andrew is on. We were wondering what the url that you were referencing was, and if it wouldn't be too much to ask, can you briefly explain how to assigned the Talons once we get in.

(It's my first year programming, and the last programmer just graduated. )
Reply With Quote
  #5   Spotlight this post!  
Unread 25-01-2017, 10:32
WilliamFRC4065's Avatar
WilliamFRC4065 WilliamFRC4065 is offline
Registered User
FRC #4065 (The Nerds of Prey)
Team Role: Programmer
 
Join Date: Jan 2017
Rookie Year: 2016
Location: Florida
Posts: 7
WilliamFRC4065 is an unknown quantity at this point
Talking Response #2

I apologize for not including the URL in my first reply. In your case you would go to roborio-3633-FRC.local and as for assigning the Talons, you would first have to know what port to enter for it, an example for it would be:
Code:
motorExample1 = new CANTalon(1);
//Later defined in the private variables section (If you are doing a non-command based)
CANTalon* motorExample1;
Then using the port '1', you would simply click the motor in the GUI and assign it to the desired port (1 in our case) then you're all set!

Let me know if you have anymore questions!
Reply With Quote
  #6   Spotlight this post!  
Unread 27-01-2017, 20:13
pjman18 pjman18 is offline
Registered User
AKA: Parker
FRC #3633 (Catalyst)
Team Role: Programmer
 
Join Date: Jan 2017
Rookie Year: 2015
Location: Minnesota
Posts: 2
pjman18 is an unknown quantity at this point
Question Re: Response #2

Quote:
Originally Posted by WilliamFRC4065 View Post
Then using the port '1', you would simply click the motor in the GUI and assign it to the desired port (1 in our case) then you're all set!
Well, the way you word this made this sound easier than it is. The way your wording this makes me think that you just go in, click the motor, and assign it. My problem is, there dosn't seem to be a motor to click on... or anything that isn't a Power Distribution Panel.
Reply With Quote
  #7   Spotlight this post!  
Unread 27-01-2017, 21:47
WilliamFRC4065's Avatar
WilliamFRC4065 WilliamFRC4065 is offline
Registered User
FRC #4065 (The Nerds of Prey)
Team Role: Programmer
 
Join Date: Jan 2017
Rookie Year: 2016
Location: Florida
Posts: 7
WilliamFRC4065 is an unknown quantity at this point
Re: RoboRio and Radio Troubles

Well... that must be a hardware problem
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 09:56.

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