/* Set constants Kp, Ki and Kd for the PID controller. */
void pid_set_constants(struct pid_controller *dev, float kp, float ki, float kd)
/* Set constants Kp, Ki and Kd for the PID controller. */
void pid_set_constants(struct pid_controller *dev, float kp, float ki, float kd)
{
	dev->kp = kp;
	dev->ki = ki / dev->f_loop;
	dev->kd = kd * dev->f_loop;
}