[joyos] r294 committed - Removed printfs from pid controller.

0 views
Skip to first unread message

jo...@googlecode.com

unread,
Jan 18, 2011, 1:17:06 AM1/18/11
to joyos...@googlegroups.com
Revision: 294
Author: vaumnou
Date: Mon Jan 17 22:12:52 2011
Log: Removed printfs from pid controller.
http://code.google.com/p/joyos/source/detail?r=294

Modified:
/trunk/src/lib/pid.c

=======================================
--- /trunk/src/lib/pid.c Mon Jan 17 22:07:34 2011
+++ /trunk/src/lib/pid.c Mon Jan 17 22:12:52 2011
@@ -59,12 +59,8 @@

float update_pid_input(struct pid_controller *pid, float current_val) {

- printf ("current value %0.3f\n", current_val);
-
float error = pid->goal - current_val;

- printf ("error %0.3f\n", error);
-
// proportional feedback
float result = error * pid->kp;

Reply all
Reply to author
Forward
0 new messages