Go to Post As my boy Macklemore once said, "The greats weren't great because at birth they could paint, the greats were great because they paint a lot". - Andrew_L [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 11-08-2010, 18:23
toastnbacon toastnbacon is offline
Registered User
AKA: James
FRC #3169 (Saintborgs)
Team Role: College Student
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Edmond
Posts: 97
toastnbacon is a jewel in the roughtoastnbacon is a jewel in the roughtoastnbacon is a jewel in the roughtoastnbacon is a jewel in the rough
autonomous problem

I've been bored, so I'm working on the autonomous program that our robot never had last year, but it's not working, and I have no idea what the problem is. I've attached what I think are the important VIs to this, if you want to see others I'll be happy to put them up.
Attached Files
File Type: vi Autonomous Independent.vi (27.4 KB, 41 views)
File Type: vi Begin.vi (40.0 KB, 34 views)
File Type: vi Robot Main.vi (23.5 KB, 37 views)
__________________
"This must be what going insane feels like."-Simon Tam, Firefly
Reply With Quote
  #2   Spotlight this post!  
Unread 11-08-2010, 18:50
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,713
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: autonomous problem

So what do you want it to do, and what is it doing instead?

You didn't include your Kicker timed.vi, but it looks like you want to drive full speed for 4.25 minutes, kicking once every 1.4 minutes or so., then reverse engines in a curve for 1.25 minutes. Kicking must involve a solenoid sequence, but that's all I can tell.

You don't want a while loop that ends right away though...
You probably don't want a while loop at all...
You can right-click on the While loop to select "Remove While Loop" and it would work (or not) just the same.

Everything is chained together okay to create your drive/kick sequence.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 11-08-2010 at 19:03.
Reply With Quote
  #3   Spotlight this post!  
Unread 11-08-2010, 20:11
toastnbacon toastnbacon is offline
Registered User
AKA: James
FRC #3169 (Saintborgs)
Team Role: College Student
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Edmond
Posts: 97
toastnbacon is a jewel in the roughtoastnbacon is a jewel in the roughtoastnbacon is a jewel in the roughtoastnbacon is a jewel in the rough
Re: autonomous problem

I'm not having any trouble with the kick vi, it's the same one we use in teleop. My goal was to have it drive forward for 75 milliseconds, kick, and repeat 2 more times, then go backwards and to one side. I didn't realize the values were in seconds. I figure there will be some fine tuning with the values, but right now it says watchdog not fed in the bottom left of the driver's station. Do you think adjusting the times for seconds should help?
__________________
"This must be what going insane feels like."-Simon Tam, Firefly
Reply With Quote
  #4   Spotlight this post!  
Unread 11-08-2010, 20:43
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,713
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: autonomous problem

Depends on how Kicker handles the Watchdog too.
If the Watchdog isn't fed inside Kicker (and Kicker takes more than half a second) then you'd see that error, but it seems like you should get 75 seconds of drive time before it threw the Watchdog error if Kicker was a problem.

Are you just turning on Autonomous at the Driver Station and staying in it the whole time?
The Watchdog error happens immediately after Enabling?

The Feed and the first Delay & Feed you don't need, but they shouldn't hurt either.

P.S.
You'd probably see "Watchdog Not Fed" flash on the screen for a second when you started Autonomous, but then it should immediately change to "Autonomous Enabled"

P.P.S.
FYI, a Watchdog error does not stop your code from continuing to run. It only cuts off any output commands it gives. So if Kicker isn't blocked by waiting for an event that may never happen, then it'll eventually return to your Autonomous Independent.vi, the Watchdog will get fed again, your outputs will get re-enabled, and your robot will suddenly take off again...
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 12-08-2010 at 13:17.
Reply With Quote
  #5   Spotlight this post!  
Unread 13-08-2010, 03:36
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
Re: autonomous problem

I could provide all sorts of style suggestions.
However, none of those actually solve your issue.
I would reccommend checking the error window on the Driver Station to see if it's user or system watchdog issues (it will give a count for both).
Like Mark suggested, make sure you're in Autonomous mode, not Practice mode.
Also, could you confirm that you have this issue only in Autonomous, and not in Teleop?
__________________
-- Marshal Horn
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
AUTONOMOUS PROBLEM krudeboy51 C/C++ 5 15-04-2010 14:14
Autonomous Problem wakeboard.dude NI LabVIEW 3 26-01-2010 15:55
Autonomous problem railerobotics Programming 7 07-02-2006 08:36
Autonomous Problem... JoeFryman Programming 2 19-02-2005 14:56
Autonomous problem. Code\\Pilot Programming 8 10-02-2004 19:40


All times are GMT -5. The time now is 08:41.

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