Joystick Disconnect after Unplugging from Field

  1. last week

    rothomega

    Apr 16 Atlanta, Georgia

    One thing that I've experienced in competitions is that after the end of a match, if I unplug my controller from the field control tower, I will have driver control of the robot for a moment, then it will disconnect. Do other people experience this too or is it an issue with my hardware?

    Also, if any official people or people who know the system well see this, is this an intended behavior of the Vexnet/Field Control system? If, say, the ethernet cable from the robot controller to the match controller got disconnected in a match, would/should the robot stay connected then lose connection shortly after?

  2. nenik

    Apr 16 V5 Beta Tester

    VEXnet uses a set of practice channels and different set of competition channels. As soon as you plug the robot into the field control, it will reconnect on the competition channel. The behavior is (for obvious reason) different when you unplug.
    @jpearman once mentioned somewhere that there is a 2-minute timeout. So 2 minutes after you unplug, the VEXnet should disconnect (to free the competition channel in case you didn't turn the robot off) and hopefully try to reconnect on a practice channel.

  3. 6 days ago

    BBBcube3.14

    Apr 16 Middle of Nowhere 8410C

    My alliance at state had his cord unplugged in a middle of a match. Then we he said he was going to get out of the way. So I bump him and because his lift was up it caused the bot to tip over. Then it still wasn't working and I pointed it out he was not happy.

  4. Foster

    Apr 16 League Play, Event Partner, V5 Beta Tester Delmarva Chief Roboteer STEM Robotics

    It's been my experience that unplugging the main controller for the tower puts you in driver mode.

    If you think about it, when you are in your shop, you are hardly ever connected to a control system. Your robot drives around just fine.

    You can test this. Take your 4 robot competition switch. Plug the controller to the switch, turn everything on. Set the switch to driver and enable. Look at the lights. (Should show that you are in driver mode) Now unplug and look at the lights. They should still show you in driver mode and you should still be able to drive.

  5. 5 days ago

    ZachDaChampion

    Apr 17 Fort Lauderdale, Florida 77788J

    @Foster It's been my experience that unplugging the main controller for the tower puts you in driver mode.

    If you think about it, when you are in your shop, you are hardly ever connected to a control system. Your robot drives around just fine.

    You can test this. Take your 4 robot competition switch. Plug the controller to the switch, turn everything on. Set the switch to driver and enable. Look at the lights. (Should show that you are in driver mode) Now unplug and look at the lights. They should still show you in driver mode and you should still be able to drive.

    In my experience, this disables all joystick input. If the switch is in 'disable' mode, you will have full control if you unplug, but if it is enabled the Cortex seems to stop responding to all joystick input (the program still runs, though).

  6. Foster

    Apr 17 League Play, Event Partner, V5 Beta Tester Delmarva Chief Roboteer STEM Robotics

    OK, so there is a difference of "my experience". Can we get someone with a working robot and a competition switch to run a test. I'm away from my robots until 1 May.

    Post the light patterns (both joystick and Cortex) when you do the test please.

    Thanks!!

  7. For us, when we disconnect from the tower after a match, the cortex DCs in around 5 seconds.

  8. Foster

    Apr 17 League Play, Event Partner, V5 Beta Tester Delmarva Chief Roboteer STEM Robotics

    @kmindspark -- was that a test that you just ran? Can I assume that DC means "Disconnect then reconnects".

    What light pattern did you see?

    "Around 5 seconds" is that via stop watch or the "one-Mississippi -- two-Mississippi" method.

  9. It doesn't reconnect after disconnecting. The cortex blinks red. Around 5 seconds is an approximate value, not exactly counted.

  10. ZachDaChampion

    Apr 17 Fort Lauderdale, Florida 77788J

    @Foster OK, so there is a difference of "my experience". Can we get someone with a working robot and a competition switch to run a test. I'm away from my robots until 1 May.

    Post the light patterns (both joystick and Cortex) when you do the test please.

    Thanks!!

    @Foster OK, so there is a difference of "my experience". Can we get someone with a working robot and a competition switch to run a test. I'm away from my robots until 1 May.

    Post the light patterns (both joystick and Cortex) when you do the test please.

    Thanks!!

    Alright, I tested it, and got some interesting results. This was done with a DIY competition switch, but it is electrically identical to an official one (NOT identical to one the control system of a real tournament). For each robot, I connected the joystick to the competition switch (enabled, driver), turned on the robot, made sure the it was functioning, then unplugged the switch. I also repeated this experiment starting the switch on disabled, and obtained the same results. On my team's competition bot, programmed with PROS (in C++), it behaves how I detailed earlier (all lights are green, PIDs continue running, etc., but the Cortex ignores all joystick input). However, with our sister team's bot, programmed in RobotC, everything continues to run normally, including joystick input. I'm not sure if this is a PROS thing or because of how it was programmed, but as soon as I am able to, I will run the test again with a fresh PROS project and see what happens. No disconnects for me, though.

  11. Foster

    Apr 17 League Play, Event Partner, V5 Beta Tester Delmarva Chief Roboteer STEM Robotics

    @ZachDaChampion Thanks for that!!! We are all RobotC and the connect is how it works for us.

    Looking forward to hearing what you next test AND TESTS FROM OTHER TEAMS

  12. sazrocks

    Apr 17 Arizona 2114B

    @ZachDaChampion Alright, I tested it, and got some interesting results. This was done with a DIY competition switch, but it is electrically identical to an official one (NOT identical to one the control system of a real tournament). For each robot, I connected the joystick to the competition switch (enabled, driver), turned on the robot, made sure the it was functioning, then unplugged the switch. I also repeated this experiment starting the switch on disabled, and obtained the same results. On my team's competition bot, programmed with PROS (in C++), it behaves how I detailed earlier (all lights are green, PIDs continue running, etc., but the Cortex ignores all joystick input). However, with our sister team's bot, programmed in RobotC, everything continues to run normally, including joystick input. I'm not sure if this is a PROS thing or because of how it was programmed, but as soon as I am able to, I will run the test again with a fresh PROS project and see what happens. No disconnects for me, though.

    Interesting. I use pros and I can use my robot for about 5 seconds after field control is disconnected and then the joystick and cortex sever their connection.

  13. 15 hours ago

    Foster

    15 hours ago League Play, Event Partner, V5 Beta Tester Delmarva Chief Roboteer STEM Robotics

    Any other Easy-C, RobotC or Pros robots want to run the test for us?

    Thanks!

 

or Sign Up to reply!