Go to Post Many students I have met will insist that nothing is better than FIRST robotics. And most people would agree that a ham sandwich is better than nothing. So does it logically follow that a ham sandwich is better than FIRST robotics? - tsaksa [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #7   Spotlight this post!  
Unread 14-02-2013, 09:16
Omar's Avatar
Omar Omar is offline
Registered User
no team
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2008
Location: Huntsville, AL
Posts: 122
Omar is a glorious beacon of lightOmar is a glorious beacon of lightOmar is a glorious beacon of lightOmar is a glorious beacon of lightOmar is a glorious beacon of light
Re: Stopping all motors

Quote:
Originally Posted by Ilya122 View Post
Hmm It's kind of an Emegency stop button.
Then use the space bar. That will stop ALL motors!
Quote:
I want to stop everything so it wont stuck.. For example. Im running in a loop and any other code wont work because I'm in a loop.
Then get rid of the loops.
THERE SHOULD BE NO LOOPS IN YOUR TELEOP.
Quote:
I want to exit the loop and stop every action with a single press..?
The space bar will do that.
Quote:
As I described it's still some sort of duplication.. anyhow I'l need to put it in 15 loops which is kind of silly.
Either rework your architecture to get rid of the time grabbing loops or put a Joy Stick Get in each loop to kill the loops.
Quote:
I'm not an amatuer programmer and I know about duplication code and every bad habit of coding. I know about our drawbacks of coding. If I was the lead programmer I would change everything. Because of the time and waste of other's time I don't want to do that.?
No comment.
Quote:
So how do I make a stop button for everything without stucking the robot with running code?
I do not understand this question. I do not know how to add a stop button without adding or "stucking the robot with running code". We do not have some magic trick for you without adding "running code" to your code.

A "professional" programmer would have planed out the correct architecture before wiring the first node on the block diagram and avoided endless loops that block the rest of the code from running.
__________________
Omar
Reply With Quote
 


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 12: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