Announcement
Collapse
Technology Forum Has Moved!
The FIRST Tech Challenge Technology forum has moved to a new location! Please take a look at our forum blog for links and instructions on how to access the new forum.
Note that volunteers (except for FTA/WTA/CSA will still access their role specific forum through this site. The blog also outlines how to access the volunteer forums.
Note that volunteers (except for FTA/WTA/CSA will still access their role specific forum through this site. The blog also outlines how to access the volunteer forums.
See more
See less
Mysterious robot run abort.
Collapse
X
-
Mike, that's independent of the RC app physically exiting, isn't it? You'll have the same problem if you merely do a Restart Robot, won't you?
-
Originally posted by mhaeberli View PostIt's almost as if the robot were disabled / stopping after the fault, but still running the code.
Leave a comment:
-
Originally posted by mhaeberli View Postmikets,
you mention fine-tuning distance / angle numbers.
what distance sensor are you using?
About ten days ago, we identified, reproduced, but have not fully isolated and documented the following behavior when running an MR Range Sensor - based autonomous:
-get a reference to the MR Range Sensor using the hardware map.
-do some stuff
-read the distance
-do some more stuff, including android.util.Log.d and some robot motion
Depending on whether the distance sensor was in some strange state or not, it would either work, or it would go straight from INIT, act as if it had auto-started, hit all of the non-conditional android.util.Log.d statements, and simply stop, showing the INIT button again.
In our case, the first range sensor read was after INIT, but before waitForStart().
It's almost as if the robot were disabled / stopping after the fault, but still running the code.
We had thought of "protecting" the range sensor read attempt with a try / catch, but have not yet done so.
Thanks,
Martin Haeberli
(de-)Mentor, FTC 7593, TigerBots
What do you mean by "the range sensor go straight from INIT, ...". I don't understand what you are describing.
Leave a comment:
-
Originally posted by mlwilliams View PostI've seen this happen even in Teleop while practicing so I don't think it's the 30 second timer. At least in teleop it would be legal to press init/play again but in autonomous you're dead.
Leave a comment:
-
mikets,
you mention fine-tuning distance / angle numbers.
what distance sensor are you using?
About ten days ago, we identified, reproduced, but have not fully isolated and documented the following behavior when running an MR Range Sensor - based autonomous:
-get a reference to the MR Range Sensor using the hardware map.
-do some stuff
-read the distance
-do some more stuff, including android.util.Log.d and some robot motion
Depending on whether the distance sensor was in some strange state or not, it would either work, or it would go straight from INIT, act as if it had auto-started, hit all of the non-conditional android.util.Log.d statements, and simply stop, showing the INIT button again.
In our case, the first range sensor read was after INIT, but before waitForStart().
It's almost as if the robot were disabled / stopping after the fault, but still running the code.
We had thought of "protecting" the range sensor read attempt with a try / catch, but have not yet done so.
Thanks,
Martin Haeberli
(de-)Mentor, FTC 7593, TigerBots
Leave a comment:
-
Originally posted by mikets View PostNo, it's not the 30-second timer. In some runs, it stopped like 2 seconds after it started. So there is no way the timer has kicked in.
You have to be careful here. I don't like this, but the timer does not get reset back to 30 sec automatically.
So if you pop into auto, and then change your mind, and hit stop, the timer has already started counting down.
Then if you simply hit init again, it will pick up from where it left off (perhaps with only a few seconds remaining).
You have to be very diligent to hit the timer disable/enable after a short auto run to ensure you have the full 30 sec.
Our drive team is fully aware of this, but they still forget some times. Typically when they are doing rapid testing of several auto modes.
Phil.
Leave a comment:
-
Originally posted by mlwilliams View PostI've seen this happen even in Teleop while practicing so I don't think it's the 30 second timer. At least in teleop it would be legal to press init/play again but in autonomous you're dead.
Leave a comment:
-
Originally posted by FTC7253 View PostI know this sounds really basic, but while testing auton multiple times, our students have been bitten several times by not resetting the 30s timer. Other than that, I haven't seen many random stops that were not associated with USB disconnects or code issues.
Leave a comment:
-
I've seen this happen even in Teleop while practicing so I don't think it's the 30 second timer. At least in teleop it would be legal to press init/play again but in autonomous you're dead.
Leave a comment:
-
I know this sounds really basic, but while testing auton multiple times, our students have been bitten several times by not resetting the 30s timer. Other than that, I haven't seen many random stops that were not associated with USB disconnects or code issues.
Leave a comment:
-
Mysterious robot run abort.
We were tuning our autonomous tonight and have encountered something I can't explain. May be one out of five or ten runs, autonomous would start, run several segments and then stopped as if somebody had pressed the "stop" button. There was no error/exception. It just simply stopped. The DS would show the "INIT" button again.
Has anybody seen this before?
We've seen this on both a ZTE and a Moto G3 phone. So it's not phone related. I wouldn't think it's related to our code because most of the time they ran fine. We were just fine tuning distance/angle numbers. When it stopped, it was on different segment of autonomous on different runs, so it was NOT stopping at the same spot of the code. Sometimes, it stopped really early, sometimes it stopped when autonomous was nearly completed. Sometimes in the middle. So it's random.Tags: None
Leave a comment: