[ros-users] Random and incorrect joystick values in C++ program (Ubuntu Linux OS)

ibwood ianbenjiman at hotmail.com
Wed Aug 18 23:14:11 UTC 2010


I think it's the microcontroller. I used minicom and it is also giving me
scattered data.

Here is a snippet of what the output looks like after running the program:

_____________________________________________________________
got this string !b30
[ INFO] [1282172907.467279660]: !b30
omnibotPoseInt[0]: 4, omnibotPoseInt[1]: 13, omnibotPoseInt[2]: 5
got this string !b22
[ INFO] [1282172907.482483897]: !b22
omnibotPoseInt[0]: 0, omnibotPoseInt[1]: 0, omnibotPoseInt[2]: 5
got this string !b2F
[ INFO] [1282172907.489771555]: !b2F
omnibotPoseInt[0]: 22, omnibotPoseInt[1]: 23, omnibotPoseInt[2]: 117
got this string !b25
[ INFO] [1282172907.499280515]: !b25
omnibotPoseInt[0]: 25, omnibotPoseInt[1]: 0, omnibotPoseInt[2]: 16
got this string !b46
[ INFO] [1282172907.515200695]: !b46
omnibotPoseInt[0]: 0, omnibotPoseInt[1]: 14, omnibotPoseInt[2]: 8
got this string !b1D
[ INFO] [1282172907.522318080]: !b1D
omnibotPoseInt[0]: 106, omnibotPoseInt[1]: 13, omnibotPoseInt[2]: 8
got this string !b7E
[ INFO] [1282172907.533312704]: !b7E
_______________________________________________________________

"omnibotPoseInt" is an array of four integers that correspond to the x,y,z
axes and the deadman.

I had tested the output by using printf after the initial data read, and
it's also the same (random).


-- 
View this message in context: http://ros-users.122217.n3.nabble.com/Random-and-incorrect-joystick-values-in-C-program-Ubuntu-Linux-OS-tp1213793p1216863.html
Sent from the ROS-Users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
ros-users mailing list
ros-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ros-users



More information about the ros-users mailing list