![]() |
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 |
Re: Weird output from ultrasonic and gyro
what are you using to print out the output?
|
Re: Weird output from ultrasonic and gyro
we uses c++ which led to the command promt by opening operator console
|
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 |
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