Quote:
Originally Posted by Ether
This is from WPILib. Doesn't LabVIEW have something similar?
|
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).
Then for your PID inputs, use:
setpoint = desired canon angle in degrees
processVariable = setpoint - corrected_angle_error