Go to Post My wife thought the lead singer, Ozzy Kamen was cute. Darn those rockers. - Andy Baker [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
  #1   Spotlight this post!  
Unread 20-02-2016, 17:13
sistamatik5583 sistamatik5583 is offline
Registered User
FRC #5583
 
Join Date: Feb 2016
Location: St. Louis
Posts: 6
sistamatik5583 is an unknown quantity at this point
Autonomous is not working!

We're in a bit of distress due to the fact that our Autonomous isn't working. Every time we change the code, the robot just jerks forward and stops moving. I've tried several different things but they all do the same thing-- it jerks forward about an inch and then completely stops. We've tried while loops, flat sequence, tried changing the times for the timers and the numbers for the motors and even tried the default code it gave us to begin with.
Here's the current code:


Any ideas as to what we're doing wrong? Any help is very much appreciated!
Reply With Quote
  #2   Spotlight this post!  
Unread 20-02-2016, 22:14
mshafer1 mshafer1 is offline
Programming Mentor
AKA: Matthew Shafer
FRC #3937 (Breakaway)
Team Role: Mentor
 
Join Date: Jan 2015
Rookie Year: 2008
Location: Arkansas
Posts: 53
mshafer1 is an unknown quantity at this point
Re: Autonomous is not working!

After loading your code into LabVIEW and seeing that the default case does not reset the motors, but sets them once and waits 10 secs, I suspect the issue is that it is always running the default.
If you are using the run from main method, you could probe the something in that case before running; then - once enabled - see if the probe is updated to confirm this.

The Alternative 2 case should work, with the exception that valid inputs are -1 to 1. So, if the first test shows that the case selector is working, try changing those values and running Alternative 2.

Finally, if you are running from main (i.e. not building and deploying or running as startup), then if there are changes made to the auto code to the point it wants to save the vi (the asterisk appears in the window title), then you will need to stop main and rerun it.
Reply With Quote
  #3   Spotlight this post!  
Unread 23-02-2016, 16:40
sistamatik5583 sistamatik5583 is offline
Registered User
FRC #5583
 
Join Date: Feb 2016
Location: St. Louis
Posts: 6
sistamatik5583 is an unknown quantity at this point
Re: Autonomous is not working!

Thank you so much! Our autonomous is working beautifully now. Thank you thank you thank you!!!
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 08:07.

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