Quote:
Originally Posted by Ether
This is from WPILib. Doesn't LabVIEW have something similar?
|
Not to my knowledge.
Here is the manpage for the basic PID VI we're given. Also, none other more advanced PID VIs seem to indicate that this functionality exists, either.
Bummer, because it'd be nice...
Quote:
Originally Posted by Ether
If not, I think this or this would work, where angle error is your desired canon angle (in degrees) minus your sensor reading (converted to degrees).
|
Yeah, we've done stuff like this in the past when using sensors that will cross zero.
Or, I think the VI I linked in my last post could be good, as well. (edit: no, it won't. see my last post)
edit: here's a VI I quickly wrote up that demonstrates both of the methods Ether wrote up:
zero_cross_test.vi