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

1 view
Skip to first unread message

jo...@googlecode.com

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

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

=======================================
--- /trunk/src/lib/pid.c Wed Mar 24 17:27:31 2010
+++ /trunk/src/lib/pid.c Mon Jan 17 21:17:15 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