The PID output is the voltage command to the motor being controlled.
Make sure create proper setpoint and processVariable inputs to the PID, for example like so:
angle_error = joystick_command - gyro_angle;
angle_error -= 360*floor(0.5+angle_error/360);
setpoint = gyro_angle + angle_error;
processVariable=0;
See discussion
here.