Quote:
Originally Posted by Ether
Is there a LabVIEW PID vi that has the built-in smarts
to generate the proper error angle (magnitude and sign)
if given a joystick command (e.g atan2(Xj,-Yj)*(180/pi)) as the setpoint
and the gyro angle as the process variable?
|
I should clarify things a bit.
I am asking if LabVIEW has a PID designed to handle angular process_variable and setpoint inputs directly, without having to do something like this externally:
Code:
angle_error = joystick_command - gyro_angle;
while(angle_error>180)angle_error-=360;
while(angle_error<-180)angle_error+=360;
setpoint = gyro_angle + angle_error;
... and then feed the fabricated setpoint and the gyro_angle into the PID's setpoint and process_variable inputs, respectively.
Not that this is difficult to do, just wondering if there is a PID with this built-in capability.