Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Weird output from ultrasonic and gyro (http://www.chiefdelphi.com/forums/showthread.php?t=73637)

Yuan Xue Lim 05-02-2009 00:08

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:confused:
Does anyone experience this problem?
coz we need help

wt200999 05-02-2009 00:20

Re: Weird output from ultrasonic and gyro
 
what are you using to print out the output?

Yuan Xue Lim 05-02-2009 18:57

Re: Weird output from ultrasonic and gyro
 
we uses c++ which led to the command promt by opening operator console

DtD 10-02-2009 23:30

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

ijk90825 11-02-2009 19:01

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


All times are GMT -5. The time now is 13:35.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi