Go to Post our family has no borders... - Greg Hainsworth [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #16   Spotlight this post!  
Unread 12-03-2014, 08:12
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
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
Reply With Quote
  #17   Spotlight this post!  
Unread 12-03-2014, 09:30
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Flat Sequence Problems

Quote:
Originally Posted by Greg McKaskle View Post
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.
Reply With Quote
  #18   Spotlight this post!  
Unread 12-03-2014, 09:45
Darthjawafett Darthjawafett is offline
Registered User
FRC #3059
 
Join Date: Jan 2012
Location: Yonkers
Posts: 14
Darthjawafett is an unknown quantity at this point
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
Reply With Quote
  #19   Spotlight this post!  
Unread 12-03-2014, 10:17
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
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
Reply With Quote
  #20   Spotlight this post!  
Unread 12-03-2014, 10:36
Darthjawafett Darthjawafett is offline
Registered User
FRC #3059
 
Join Date: Jan 2012
Location: Yonkers
Posts: 14
Darthjawafett is an unknown quantity at this point
Alright so thanks to everyone for their help and suggestions. The problem has finally been resolved and we are ready for our Albany competition
Reply With Quote
  #21   Spotlight this post!  
Unread 12-03-2014, 11:42
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Flat Sequence Problems

Would you mind telling us what you did to fix it?
Reply With Quote
  #22   Spotlight this post!  
Unread 12-03-2014, 19:38
Darthjawafett Darthjawafett is offline
Registered User
FRC #3059
 
Join Date: Jan 2012
Location: Yonkers
Posts: 14
Darthjawafett is an unknown quantity at this point
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.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 04:31.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi