Go to Post It keeps your minibot from being destroyed by Dean's chainsaw, which is a big competitive advantage in future matches. - Joe Ross [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 22-12-2014, 13:37
Zephex Zephex is offline
Registered User
FRC #2213
 
Join Date: Dec 2014
Location: Israel
Posts: 2
Zephex is an unknown quantity at this point
Need some help with

I've connected everything on the correct ports, but for some reason this won't work. When I run the program nothing happens when the condition is met.
Here are some pics:

Begin:


Teleop:


Thanks in advance!
Reply With Quote
  #2   Spotlight this post!  
Unread 22-12-2014, 13:49
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,795
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: Need some help with

The Pot will never exactly equal 5.

You might want to use > 4.9 or something.

Try probing the actual pot values so you know what you are getting.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 22-12-2014 at 15:35.
Reply With Quote
  #3   Spotlight this post!  
Unread 22-12-2014, 14:08
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,065
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Need some help with

Quote:
Originally Posted by Mark McLeod View Post
The Pot will never exactly equal 5.
@OP: Mark's statement applies not only to your particular issue: It applies whenever you are comparing floating-point numbers in a computer program.

Here are a couple of articles which may be of interest:

http://randomascii.wordpress.com/201...-2012-edition/

http://c-faq.com/fp/fpequal.html



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:47.

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