![]() |
Re: Flat Sequence Problems
My suggestion would be to run RobotMain using the run button. I wonder if the code you are observing is actually the code you posted. I would also wonder if the motor controllers for the drive train are set to coast or brake. I would think that the 200ms full speed bump at the beginning would barely move most robots. When I've helped most teams with auto, it is more like two seconds of 75% motors in order to cross the line.
Greg McKaskle |
Re: Flat Sequence Problems
Quote:
The code you're showing us doesn't have any obvious issues that would cause the symptoms you're describing. How are you putting the code on the robot? Again, what exactly are you doing in order to run autonomous mode? Please be as detailed and specific as you can. |
To put the code onto the robot we connect our programming laptop to the crio then we build our code and deploy it. To run the code our driving laptop connects and runs autonomous mode from the driver station. The name means that it's our shooting robots code but for testing purposes it is being used on our climbing robot from last year
|
Re: Flat Sequence Problems
Rereading the description you posted, here is what I think is happening.
Auto starts, the robot hardly twitches, waits two seconds, then starts driving in an arc and shooting. If you don't hear the field sounds and know exactly when auto starts, if you don't see the twitch and assume that auto starts when the robot moves, then I believe that would match your description. I believe that the code you show will do what you want when you make the initial duration longer. Try 1500 or 2000 forward, then the rest of the code. As another debugging technique, have someone drive the auto while someone else records with a phone's video. Review the video and write down the recipe. I think you'll see that the forward needs to be more than 1/5 of a second. I don't know that you need 2 seconds for the ball to settle. And as mentioned, you should set the motors to 0 at the end. You have disabled motor safety, so the robot will continue driving in an arc until auto ends. Hope this helps. Greg McKaskle |
Alright so thanks to everyone for their help and suggestions. The problem has finally been resolved and we are ready for our Albany competition
|
Re: Flat Sequence Problems
Would you mind telling us what you did to fix it?
|
Re: Flat Sequence Problems
I kept changing around the timed intervals for the first drive command and, it began working as I wanted it too. I also added the brake for the motors in the last frame.
After that change was made, it followed its given instruction in the sequence like we wanted it too. |
| All times are GMT -5. The time now is 20:18. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi