|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
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 |
|
#2
|
||||
|
||||
|
Re: Weird output from ultrasonic and gyro
what are you using to print out the output?
|
|
#3
|
||||
|
||||
|
Re: Weird output from ultrasonic and gyro
we uses c++ which led to the command promt by opening operator console
|
|
#4
|
||||
|
||||
|
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
|
|||
|
|||
|
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 |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |