Bayley Wang
/
foc-ed_in_the_bot_compact
robot
Diff: main.cpp
- Revision:
- 71:292dfc44ca53
- Parent:
- 70:5e39beeb4a21
- Child:
- 72:5f1da97d62e1
diff -r 5e39beeb4a21 -r 292dfc44ca53 main.cpp --- a/main.cpp Sun Feb 05 08:41:21 2017 +0000 +++ b/main.cpp Sun Feb 05 11:58:06 2017 +0000 @@ -149,6 +149,7 @@ void debug_print() { io.pc->printf("%d,%d,%d,%d,%d,%d,%d,%d\n", (int) read.w, (int) control.d_ref, (int) control.d_filtered, (int) control.q_ref, (int) control.q_filtered, (int) (255 * control.torque_percent), (int) (255 * control.d_integral), (int) (255 * control.q_integral)); + //io.pc->printf("%d\n", (int) (255 * control.torque_percent)); wait(0.01); }