|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
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. Last edited by Andrew01377 : 22-01-2017 at 18:36. |
|
#2
|
||||
|
||||
|
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);
}
Hope this helps! |
|
#3
|
||||
|
||||
|
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.
|
|
#4
|
|||
|
|||
|
Re: A fix that just might work.
Quote:
(It's my first year programming, and the last programmer just graduated. ) |
|
#5
|
||||
|
||||
|
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; Let me know if you have anymore questions! |
|
#6
|
|||
|
|||
|
Quote:
![]() |
|
#7
|
||||
|
||||
|
Re: RoboRio and Radio Troubles
Well... that must be a hardware problem
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|