Go to Post Learning by failure is quite common. - Gdeaver [more]
Home
Go Back   Chief Delphi > ChiefDelphi.com Website > Extra Discussion
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rating: Thread Rating: 10 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 19-02-2014, 12:55
nxtmonkeys's Avatar
nxtmonkeys nxtmonkeys is offline
SCP-682
AKA: Parker Wells
FRC #5349 (RoboEagles)
Team Role: Mentor
 
Join Date: Feb 2014
Rookie Year: 2014
Location: New York
Posts: 213
nxtmonkeys will become famous soon enough
pic: Another Teleop while loop

Reply With Quote
  #2   Spotlight this post!  
Unread 19-02-2014, 14:13
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: pic: Another Teleop while loop

Are you actually using this code in Teleop? What I see would completely break the robot program if it were placed there.
Reply With Quote
  #3   Spotlight this post!  
Unread 19-02-2014, 14:14
nxtmonkeys's Avatar
nxtmonkeys nxtmonkeys is offline
SCP-682
AKA: Parker Wells
FRC #5349 (RoboEagles)
Team Role: Mentor
 
Join Date: Feb 2014
Rookie Year: 2014
Location: New York
Posts: 213
nxtmonkeys will become famous soon enough
Re: pic: Another Teleop while loop

Yes, I am. It works too. I wonder why people keep telling me that there's something wrong? Please tell me if I am missing anything.
Reply With Quote
  #4   Spotlight this post!  
Unread 19-02-2014, 14:24
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: pic: Another Teleop while loop

If "stop" isn't true, then putting that while loop in Teleop will keep the rest of the robot program from running. I would expect to see communication issues indicated on the Driver Station.

Since you don't have any sort of delay in the loop, it will also use up all of the CPU time setting the motor output as fast as it can.
Reply With Quote
  #5   Spotlight this post!  
Unread 19-02-2014, 14:26
nxtmonkeys's Avatar
nxtmonkeys nxtmonkeys is offline
SCP-682
AKA: Parker Wells
FRC #5349 (RoboEagles)
Team Role: Mentor
 
Join Date: Feb 2014
Rookie Year: 2014
Location: New York
Posts: 213
nxtmonkeys will become famous soon enough
Re: pic: Another Teleop while loop

Huh. It doesn't seem to do that when I run it in parallel with my other loops. I wonder why?
Reply With Quote
  #6   Spotlight this post!  
Unread 19-02-2014, 18:00
Pault's Avatar
Pault Pault is offline
Registered User
FRC #0246 (Overclocked)
Team Role: College Student
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Boston
Posts: 618
Pault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond repute
Re: pic: Another Teleop while loop

Telepop itself is in a loop. Adding a while loop inside it is, at the very least, redundant. Although I can see why others think it might cause problems as well.
Reply With Quote
  #7   Spotlight this post!  
Unread 19-02-2014, 18:07
nxtmonkeys's Avatar
nxtmonkeys nxtmonkeys is offline
SCP-682
AKA: Parker Wells
FRC #5349 (RoboEagles)
Team Role: Mentor
 
Join Date: Feb 2014
Rookie Year: 2014
Location: New York
Posts: 213
nxtmonkeys will become famous soon enough
Re: pic: Another Teleop while loop

Well, I pretty much have a few while loops which execute at the same time. I have the loops so that I can fire until the battery dies (if I wanted to). I didn't know that teleop was a loop. Huh. Thanks.
Reply With Quote
  #8   Spotlight this post!  
Unread 19-02-2014, 22:35
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: pic: Another Teleop while loop

Teleop isn't exactly in a loop. It's called by the Robot Main vi whenever the Driver Station sends new data, and if your Teleop code doesn't finish before the next data packet arrives you'll start tripping the communication watchdog. Putting a neverending loop inside Teleop is a sure way to break your code.

Can you post your Teleop.vi file? I'm curious what you've done that lets the robot work even with the collection of unthrottled and unterminated while loops you say you've put there.
Reply With Quote
  #9   Spotlight this post!  
Unread 20-02-2014, 10:48
nxtmonkeys's Avatar
nxtmonkeys nxtmonkeys is offline
SCP-682
AKA: Parker Wells
FRC #5349 (RoboEagles)
Team Role: Mentor
 
Join Date: Feb 2014
Rookie Year: 2014
Location: New York
Posts: 213
nxtmonkeys will become famous soon enough
Unhappy Re: pic: Another Teleop while loop

Can't right now. my younger brother kneeled on our programming computer and broke the screen, so...
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 01:15.

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