|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||||
|
|||||
|
Re: Gyro programming in LabVIEW
Look at the LabVIEW Gyro example. It shows you exactly how to use a gyro (yaw rate sensor), and Tutorial 7 tells you exactly how to incorporate into your own code what's in the example.
If you're using the Cartesian version of the MecanumDrive vi, it has an input for the gyro angle that will give you field-centric control of a holonomic drivebase. |
|
#2
|
|||
|
|||
|
Re: Gyro programming in LabVIEW
Quote:
|
|
#3
|
||||
|
||||
|
Re: Gyro programming in LabVIEW
One thing to pay attention to is that the kit gyro is limited to 250 degrees per second rotation rate. If your robot spins faster than this, then you will "upset" the gyro, and your orientation will be lost.
You can test your robot's rate by timing multiple rotations at full commanded rotation rate. If it is too fast (very likely, depending on gearing), you could scale the rotation rate to not achieve 250 dps. If you don't want to throttle the rotation rate, check out a digital gyro. We are using one from Pololu. This thread has our code and more info: http://www.chiefdelphi.com/forums/sh...d.php?t=127677 No matter what you do, you still will probably have drift or upset problems. Make sure you give your drivers a gyro reset button, so they can make the world right again for the robot. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|