Quote:
Originally Posted by Kevin Phan
When using a gyro, the gyro will not at first give a degree that you do not expect. If you are thinking in the form of 0-360 degrees. You need to use the modular division to get the 0-360 you want. I noticed in your begin that your gain is set to 125 mV/sec, you want to refer to the first technical resources for setting up the gyro. It is actually 7 mV/sec. When setting up the gain it should have .007 as the constant for the set gain vi. Also you probably do not want to continually read a gyro in the tele-op vi, since LabVIEW will continually read the gyro and eat up your processing time. You want to use the example to figure out a loop delay and move your gyro reading into Periodic tasks.
Another note to add is that a gyro will continually add on to itself due to factors you can't control. To mitigate this, you would want to reset your gyro at points where it will not affect your measured heading.(i.e. Reset gyro when the robot faces the drive station.)
|
we tried changing the value but it still didnt help.
ill explain in more detail what you can see
when you deploy the robot code it shows a value that gets higher and higher, stops and then lowers itself or raises itself again.
can anyone explain why?
