Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Flat Sequence Problems (http://www.chiefdelphi.com/forums/showthread.php?t=127758)

Greg McKaskle 12-03-2014 08:12

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

Alan Anderson 12-03-2014 09:30

Re: Flat Sequence Problems
 
Quote:

Originally Posted by Greg McKaskle (Post 1357967)
I wonder if the code you are observing is actually the code you posted.

The name of the project (2014Robot0n2013chasis) suggests that you might have copied the project from another folder. When you do that, you usually need to go into the properties of the FRC Robot Boot-up Deployment and modify the Local destination directory to match where the project resides.

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.

Darthjawafett 12-03-2014 09:45

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

Greg McKaskle 12-03-2014 10:17

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

Darthjawafett 12-03-2014 10:36

Alright so thanks to everyone for their help and suggestions. The problem has finally been resolved and we are ready for our Albany competition

Alan Anderson 12-03-2014 11:42

Re: Flat Sequence Problems
 
Would you mind telling us what you did to fix it?

Darthjawafett 12-03-2014 19:38

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