|
|
|
![]() |
|
|||||||
|
||||||||
|
|
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. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|