Go to Post I would not want the task of devising a system that 50,000 very smart people try to outwit. - texarkana [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 01-02-2003, 15:21
LD8 LD8 is offline
Registered User
#0599 (RoboDox)
Team Role: Student
 
Join Date: Dec 2002
Location: Granada Hills
Posts: 6
LD8 is an unknown quantity at this point
Send a message via AIM to LD8 Send a message via Yahoo to LD8
Programming Prob-Analog sensors!!

When we look at the Dashboard viewer, we get a value listed under analog 1 from 0-255 however sensor1 is not receiving the value. Yes, all of the sensor1 one lines are uncommented and the serin line does include the sensor1 parameter. (What is the packet_num variable for?) Any ideas for what reason the sensor1 variable is not getting the value for analog 1 . Thanks,
Programmers in Need
__________________
Go Eagles!

Go Lakers!
  #2   Spotlight this post!  
Unread 01-02-2003, 16:38
rbayer's Avatar Unsung FIRST Hero
rbayer rbayer is offline
Blood, Sweat, and Code
no team (Teamless Orphan)
 
Join Date: Mar 2002
Rookie Year: 2001
Location: Minnetonka, MN
Posts: 1,087
rbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of light
Send a message via AIM to rbayer
Could you post your code, or at least everything up to and including the SERIN? If you'd rather email it to me, I'd be happy to take a look at it there also. rob-bayer@mn.rr.com
__________________
New C-based RoboEmu2 (code simulator) available at: http://www.robbayer.com/software.php
  #3   Spotlight this post!  
Unread 01-02-2003, 17:34
Caleb Fulton's Avatar
Caleb Fulton Caleb Fulton is offline
Z = Z^2 + C ......WHEEEE!
AKA: aXvXiA
#0461 (West Side Boiler Invasion)
Team Role: College Student
 
Join Date: Dec 2002
Location: West Lafayette, Indiana
Posts: 205
Caleb Fulton has a spectacular aura aboutCaleb Fulton has a spectacular aura aboutCaleb Fulton has a spectacular aura about
Send a message via AIM to Caleb Fulton
Well...

If the sensor in question is one of the light sensors, then your problem is that you are working with a digital sensor and an analog variable...
__________________
  #4   Spotlight this post!  
Unread 03-02-2003, 02:20
Lloyd Burns Lloyd Burns is offline
Registered User
FRC #1246 (Agincourt Robotics)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Toronto
Posts: 292
Lloyd Burns is an unknown quantity at this point
If the variables in the Serin are not in the correct order, or there are not the correct number of them, then the analog input value may be going to another variable.

for example, if you have a,b,c,d variables in the serin, and you tell the COM to send in a,c,d,g, by setting CONs to 1, b will get c's value, c will read in d"s value, and d will have g's


DEBUG can monitor the value you program sees; the Dashboard can only report what value the RC sees on the input.
Closed Thread


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
Communications via the Programming Port Larry Barello Technical Discussion 9 10-06-2003 23:33
Robotics Tournament at Sensors Expo & Conference Kyle Fenton Off-Season Events 4 04-05-2003 12:15
optical sensors acting strangely rosebud Electrical 10 03-02-2003 00:29
pre-built autonomous sensors? BandChick Technical Discussion 4 05-01-2003 22:06
Error found in programming for the pump and pressure switch sjharobotics Programming 4 06-02-2002 17:46


All times are GMT -5. The time now is 01:53.

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