|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Autonomous chooser not working when connected to the field
We spent the day yesterday trying to figure why when tethered out autonomous chooser worked but wirelessly on the field the bot sat dead in autonomous. We worked with a few techs and found that turning off the windows fire wall worked. We had 7 qualifying rounds today and the last one we had no autonomous again. Brought it back to the pits, tethered and worked. ANY ideas? We have one more qualifying match tomorrow before finnals. We are currently sitting in 19th with strong possibility of making to a final alience.
|
|
#2
|
||||
|
||||
|
Re: Autonomous chooser not working when connected to the field
Do you have a connection indicator on the dashboard? What did it say? Are you using the LabView dashboard or the Java/C++/Python etc one?
What I would do in your position is add a connection indicator on the dashboard. This will tell you whether the dashboard can connect to the NetworkTables server. If the SD isn't connecting very soon after the robot is connected, reboot the roboRIO. We had this same problem occur in a practice match, but not since. No guarantee of this working, but I've had trouble with the roboRIO not fully booting up a few times today. If I have a chance, I'll come over tomorrow morning to try and help some more. |
|
#3
|
|||
|
|||
|
Re: Autonomous chooser not working when connected to the field
Quote:
|
|
#4
|
|||
|
|||
|
Re: Autonomous chooser not working when connected to the field
Thinking about adding the line
Code:
public void autonomousIntit () {
autonomousCommand = (Command) autonomousChooser.getSelected ();
// *******Add this******
if (autonomousCommand == null) {
autonomousCommand = new Auto_00_ReachEdgeOfObstical();
// now the normal
if (autonomousCommand != null) autonomousCommand.start ();
}
|
|
#5
|
||||
|
||||
|
Re: Autonomous chooser not working when connected to the field
If selections aren't showing up on your dashboard, restart the robot program. The dashboard relies on the initial sending of selections on program start to know what they are.
Also, as other people have said, sometimes selectors are picky. What we did was print out what the robot thought was selected in disabledInit() so we could check if we needed to reselect something. |
|
#6
|
|||
|
|||
|
Re: Autonomous chooser not working when connected to the field
I would recommend doing this slightly differently. Adding that command to the SendableChooser using addDefault will do basically the same thing, but IMO is more clear as the default is defined right where you are specifying the whole list.
Having said that, I believe your way would work as well. |
|
#7
|
||||
|
||||
|
Re: Autonomous chooser not working when connected to the field
Quote:
|
|
#8
|
|||
|
|||
|
Re: Autonomous chooser not working when connected to the field
If you do have a connection indicator and it was green and your selected autonomous still did not run, select a different autonomous mode and then re-select your desired autonomous. You may have a race condition where your selected autonomous doesn't get sent over to the robot initially.
|
|
#9
|
|||
|
|||
|
Re: Autonomous chooser not working when connected to the field
We do have a connection indicator but will have to ask the drive coach and team if they noticed the status. Most likely they did not . The select / reselect was a rouble shooting step attempted yesterday but since today the entire day it was running flawlessly the drivers hadn't been doing this. We also started yesterday with static IP's but after our radio flash that didn't work. The IP was 10.32.44.5 that I believe now was wrong. Should been like 10.32.44.20. Our ip camera is static with an ip of 10.32.44.11 and is lagging but displayed on the SD.
nickbrickmaster love to pick your brain for my own knowledge. You must be here at 10,000 lakes. We have a slow start in the morning. Our first and final quality is at 11:30 ish. Our plan is to re-weigh since we beefed-up a part of our bot with about 12oz and with a 119 lbs bot yep it must be done. |
|
#10
|
|||
|
|||
|
Re: Autonomous chooser not working when connected to the field
Quote:
Here's the link they were using but I think you did the static steps right https://wpilib.screenstepslive.com/s...g-at-the-event |
|
#11
|
||||
|
||||
|
We also had this happen to us. It turns our that Windows 10 had re-enable the firewall. Very annoying but at least we know to look for that now. Also we ended up setting it to use static ip addresses as suggested by the FTAA. One of our eliminations alliance partners also saw the same problem... they had no firewall issue but fixed it by restarting their robot and driverstation to force a cleanup of the network tables.
|
|
#12
|
|||
|
|||
|
Re: Autonomous chooser not working when connected to the field
We've had issues with GetSelected() returning null intermittently in AutonomousInit() (in C++, but it's possible that similar ones could pop up when using Java). Calling GetSelected() in DisabledPeriodic() instead and storing its return value has been somewhat more reliable.
|
|
#13
|
|||
|
|||
|
Re: Autonomous chooser not working when connected to the field
We endd up with this
Code:
public void autonomousIntit () {
// autonomousCommand = (Command) autonomousChooser.getSelected ();
// *******Add this******
autonomousCommand = new Auto_02_underLowbarScoreLowGoal();
// now the normal
if (autonomousCommand != null) autonomousCommand.start ();
}
http://www.chiefdelphi.com/forums/sh...d.php?t=141684 Code: System.out.println("Hello From the Rio"); //Print to RioLog Just a tool this team has not ever used and I need to get and get them used to using. I'm learning and introducing the team to command based programming and more advanced controls. Thanks for you help and suggestions. With a 15 place qualify and a 7th alliance second pick we help the quarterfinals go three rounds with a close game #2 and #3. If our auto worked could had change the game |
|
#14
|
|||
|
|||
|
Re: Autonomous chooser not working when connected to the field
Sorry to hear you were having so much trouble, hope that it is resolved for tomorrow.
This won't help you for this year, and I may sound like I am harping on this, but my team chose to use a hardware selector switch instead of relying on SmartDashboard or other software solutions, for precisely this reason. The drive team appreciated having physical feedback to know exactly what the robot would do. An option to consider for the future. |
|
#15
|
|||
|
|||
|
Re: Autonomous chooser not working when connected to the field
Quote:
Code:
autonomousCommand = new Auto_02_underLowbarScoreLowGoal(); |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|