Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   How to make the Gyro work (http://www.chiefdelphi.com/forums/showthread.php?t=102291)

agartner01 08-02-2012 17:24

How to make the Gyro work
 
Well after not being able to get the accelerometer to work, I'm going to try the gyro. But of course its not that easy. I just get a bunch of numbers that increment up. (Ex:2.97922e+087) Code and Pictures:

Code:

Gyro *gyro;
...
gyro = new Gyro (1);
...
gyro->Reset();
...
std::cout<<gyro->GetAngle()<<endl;


mikets 08-02-2012 17:30

Re: How to make the Gyro work
 
Wait, am I looking at it correctly? It seems you are connecting to channel one of the analog bumper, but the analog bumper is inserted into the solenoid module. It also looks like your "solenoid bumper" is inserted into your analog module. In other words, you have swapped your analog and solenoid bumpers.

agartner01 08-02-2012 17:40

Re: How to make the Gyro work
 
Yep, came here to post that very thing... I got it working now... We totally know what we're doing...

Alan Anderson 08-02-2012 22:16

Re: How to make the Gyro work
 
Where did you get that cable you're using to connect the sensor to the Analog input pins? The wiring scheme is decidedly nonstandard, with power on the black wire and common on the red. That's likely to cause some confusion if you ever need to troubleshoot it.

agartner01 08-02-2012 22:21

Re: How to make the Gyro work
 
Quote:

Originally Posted by Alan Anderson (Post 1122760)
Where did you get that cable you're using to connect the sensor to the Analog input pins? The wiring scheme is decidedly nonstandard, with power on the black wire and common on the red. That's likely to cause some confusion if you ever need to troubleshoot it.

I got if from the KOP. It was the only f-f 3 pin cable.


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

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