Quote:
Originally Posted by wilsonmw04
1.Will it be easier to: a: change the NI VI to allow us to strafe correctly
|
I am not aware of any issues with the LabVIEW vi. So I don't think you want to change it. Your problem likely lies elsewhere. If you would post your code I'd bet someone here could help you find it (the problem).
Quote:
|
or b: integrate the gyro to stabilize our drive base using our own code?
|
Not sure what you mean by "stabilize" your drive base. The gyro support in the LabVIEW vi is for field-centric control of the translation commands. If your drive base is not "stable" (e.g. turns when not commanded), the gyro support in the LabVIEW vi will not stop it from doing so. It will simply make it so the vehicle keeps going in the commanded direction while rotating. If you want to add the aforementioned gyro support (ie field-centric control) to your own code, all that is required is to do a coordinate rotation of the translation portion of the command.
If you want to use the gyro to prevent unwanted rotation, or to make the robot turn and align with a joystick direction command, that can be done, but it's a separate problem from the field-centric gyro support built in to the LabVIEW vi.