Go to Post Dean's "All Denim" (now referred to as "Deanim") look is apparently catching on. - AndyB [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 04-02-2014, 22:19
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,563
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Sensor Issue

When you copied the front panel controls to teleop, did you make sure the values stayed the same?
Reply With Quote
  #2   Spotlight this post!  
Unread 05-02-2014, 12:14
ROBOGIRL2781 ROBOGIRL2781 is offline
Registered User
FRC #2781
 
Join Date: Jan 2013
Location: Burbank,IL
Posts: 19
ROBOGIRL2781 is an unknown quantity at this point
Re: Sensor Issue

Quote:
Originally Posted by Joe Ross View Post
When you copied the front panel controls to teleop, did you make sure the values stayed the same?
Yes. All values are the same.
Reply With Quote
  #3   Spotlight this post!  
Unread 07-02-2014, 16:18
ROBOGIRL2781 ROBOGIRL2781 is offline
Registered User
FRC #2781
 
Join Date: Jan 2013
Location: Burbank,IL
Posts: 19
ROBOGIRL2781 is an unknown quantity at this point
Re: Sensor Issue

Here is a pic of the front panel...I am unsure if there are any other VIs I need to add a front panel to other than teleop...
Attached Thumbnails
Click image for larger version

Name:	frontpanel.png
Views:	13
Size:	221.1 KB
ID:	16151  
Reply With Quote
  #4   Spotlight this post!  
Unread 07-02-2014, 16:26
billbo911's Avatar
billbo911 billbo911 is offline
I prefer you give a perfect effort.
AKA: That's "Mr. Bill"
FRC #2073 (EagleForce)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Elk Grove, Ca.
Posts: 2,355
billbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond repute
Re: Sensor Issue

We had this issue when we tried using the "Digital", or "PWM", output. We ended up just choosing to use analog, as you did here.
The one thing to remember about this sensor is, it only samples at a 10Hz rate. Anything beyond that is not getting you any additional data, and may be corrupting your readings..
With the default config, you are sampling it at 1KHz.
Try setting the sample rate down to 10Hz and see how it works.


(We ended up re-building the digital interface and it worked like a charm. I have NO CLUE why it failed previously!)
__________________
CalGames 2009 Autonomous Champion Award winner
Sacramento 2010 Creativity in Design winner, Sacramento 2010 Quarter finalist
2011 Sacramento Finalist, 2011 Madtown Engineering Inspiration Award.
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC). Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist
Reply With Quote
  #5   Spotlight this post!  
Unread 07-02-2014, 17:59
ROBOGIRL2781 ROBOGIRL2781 is offline
Registered User
FRC #2781
 
Join Date: Jan 2013
Location: Burbank,IL
Posts: 19
ROBOGIRL2781 is an unknown quantity at this point
Re: Sensor Issue

I edited the code, but its still not functioning
Attached Thumbnails
Click image for larger version

Name:	fixedcode.png
Views:	12
Size:	166.7 KB
ID:	16153  
Reply With Quote
  #6   Spotlight this post!  
Unread 07-02-2014, 23:57
billbo911's Avatar
billbo911 billbo911 is offline
I prefer you give a perfect effort.
AKA: That's "Mr. Bill"
FRC #2073 (EagleForce)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Elk Grove, Ca.
Posts: 2,355
billbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond repute
Re: Sensor Issue

Quote:
Originally Posted by ROBOGIRL2781 View Post
I edited the code, but its still not functioning
Dividing the value by 9.8 is only off by a factor of 1000.
It should be .0098.
__________________
CalGames 2009 Autonomous Champion Award winner
Sacramento 2010 Creativity in Design winner, Sacramento 2010 Quarter finalist
2011 Sacramento Finalist, 2011 Madtown Engineering Inspiration Award.
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC). Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist
Reply With Quote
  #7   Spotlight this post!  
Unread 08-02-2014, 10:47
ROBOGIRL2781 ROBOGIRL2781 is offline
Registered User
FRC #2781
 
Join Date: Jan 2013
Location: Burbank,IL
Posts: 19
ROBOGIRL2781 is an unknown quantity at this point
Re: Sensor Issue

I changed the scaling but it still does not show its working...is there specific numbers for the AverageBits and OversampleBits?
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 09:55.

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