Go to Post [I] [/I]I think this may be some kind of record. We got through 9 entire posts before someone mangled the spelling of mecanum. [I] [/I] - Ether [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 05-02-2009, 00:08
Yuan Xue Lim's Avatar
Yuan Xue Lim Yuan Xue Lim is offline
Electrical Programmer
FRC #3017 (Project Genesis)
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: NY
Posts: 37
Yuan Xue Lim is an unknown quantity at this point
Send a message via AIM to Yuan Xue Lim
Weird output from ultrasonic and gyro

The gyro and ultrasonic was wired in the right way but using RC extension cable that was connected by using two different wire.
However when we print out the output, they give us some alien language than cannot be read by human being
Does anyone experience this problem?
coz we need help
__________________
[font="Fixedsys"][b]We Don't Hope We will.
  #2   Spotlight this post!  
Unread 05-02-2009, 00:20
wt200999's Avatar
wt200999 wt200999 is online now
Texas Instruments
AKA: Will Toth
FRC #3005 (Robochargers)
Team Role: Mentor
 
Join Date: Mar 2006
Rookie Year: 2004
Location: Dallas, Texas
Posts: 323
wt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud of
Send a message via MSN to wt200999
Re: Weird output from ultrasonic and gyro

what are you using to print out the output?
__________________
Programming in LabVIEW? Try VI Snippets!

FIRST LEGO League 2004 - 2005
FRC Team 870 Student 2006 - 2009
FRC Team 3005 Mentor 2013 -
  #3   Spotlight this post!  
Unread 05-02-2009, 18:57
Yuan Xue Lim's Avatar
Yuan Xue Lim Yuan Xue Lim is offline
Electrical Programmer
FRC #3017 (Project Genesis)
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: NY
Posts: 37
Yuan Xue Lim is an unknown quantity at this point
Send a message via AIM to Yuan Xue Lim
Re: Weird output from ultrasonic and gyro

we uses c++ which led to the command promt by opening operator console
__________________
[font="Fixedsys"][b]We Don't Hope We will.
  #4   Spotlight this post!  
Unread 10-02-2009, 23:30
DtD's Avatar
DtD DtD is offline
I hope the watchdog starves!
AKA: Pathogen David
FRC #2410 (The Metal Mustangs (Merged from 2334, Hazmat Robotics))
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Kansas
Posts: 86
DtD will become famous soon enoughDtD will become famous soon enough
Re: Weird output from ultrasonic and gyro

I think he meant which method. (printf or cout)

Cout can sometimes take a number in as a char byte, so it outputs the character code assoiated with that number, resulting in...alien language!

Also, you can't print every cycle, if you do it accumalates and you get old data.

~DtD
  #5   Spotlight this post!  
Unread 11-02-2009, 19:01
ijk90825 ijk90825 is offline
Registered User
FRC #3017
 
Join Date: Jan 2009
Location: NY
Posts: 4
ijk90825 is an unknown quantity at this point
Re: Weird output from ultrasonic and gyro

we use the debugging tool and printed out the angle that gyro currently has

we have no clue why but it gives us humongous numbers such as 7 million and increases by constant value such as 700 000. So it starts from a random number or 0, and keep increases from 700 000.
Output is like
0
700000
1400000
2100000 and so forth
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
Switch digital input to output during operation? Parallax Ultrasonic wt200999 C/C++ 2 28-01-2009 19:30
Occational weird value from Potentiometer wt200999 Programming 2 14-02-2008 21:02
Ultrasonic Sensor output Dillon Compton Programming 5 03-02-2006 10:20
Weird Output from Dashboard Port Ian W. Programming 9 06-03-2004 21:33
Gyro Output Data Venkatesh Technical Discussion 1 03-02-2003 21:34


All times are GMT -5. The time now is 10:14.

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