Go to Post If this thread isn't a sign that CD is going through some serious withdrawals, I don't know what is. - Ty Tremblay [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
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 01-02-2011, 13:42
Team2246's Avatar
Team2246 Team2246 is offline
Registered User
AKA: Jon Mardyla
FRC #2246 (The Army Of Sum)
Team Role: Programmer
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Lewiston Michigan
Posts: 3
Team2246 is an unknown quantity at this point
Autonomous & Ultrasonic Rangefinder

So while working with a mentor of mine and trying to program our three photocells we have ran into some problems. The tracking is working right, but it won't track at full speed. It sorta jumps or pulses. It jumped or pulsed 18 times in 15 seconds. so 1.2 times a second. Could this be a problem with the Ultrasonic Rangefinder? If not i would still like some guidence towards fixing this problem. Thank you everyone in advanced any help is appreciated. Also we are using a gyro, and the camera in adddition to the ultrasonic rangefinder and photocells. Oh and for some more info the counter class has some errors in the diagnostics on the driver station.
Attached Files
File Type: cpp MyRobot.cpp (5.8 KB, 27 views)

Last edited by Team2246 : 01-02-2011 at 13:44. Reason: additonal info
Reply With Quote
  #2   Spotlight this post!  
Unread 01-02-2011, 14:08
mikets's Avatar
mikets mikets is offline
Software Engineer
FRC #0492 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Bellevue, WA
Posts: 667
mikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of light
Re: Autonomous & Ultrasonic Rangefinder

Don't understand what you were saying. What do you mean by "sorta jumps or pulses"? Looking at your code, you have two ultrasonic sensors. The first thing come to mind was they could interfere each other (i.e. one of them pinged and the other one picked up the echo). But searching through the code, I don't see the ultrasonic sensors being used, at least not controlling any of the driving. They were instantiated but never used except in print statements. Did you mean the numbers printed on the LCD are jumping? If so, it could be due to the two interfere with each other.
__________________
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 02:37.

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