PID,two relays output

Hi ,there i need some help with pid ,i dont know how to control two relays with pid output ,if output increases to turn relay 1 if decreases to turn relay 2 ,can I set pid output to be from -60 to 60 ?? thank you

When the PID is executed it will return a value. Save the value in a variable. If the value has increased since the last time it was computed take the appropriate action. If the value has decreased since the last time it was computed take the appropriate action. If the value is unchanged take the appropriate action.

The PID library that I have used (from the Playground) has a SetOutputLimits() method which as the name implies sets the lower and upper limits of the output like this

 trackPID.SetOutputLimits(-20,20);

Thank you ,I will tray like that :D

What's the point of using PID, if the only thing you can do to affect the process is turn a relay on or off?

It might make sense if the output defined how long the relay should be open.