Bayley Wang
/
foc-ed_in_the_bot_compact
robot
Diff: main.cpp
- Revision:
- 55:3568b78dc203
- Parent:
- 54:25db122c05f0
- Child:
- 56:c681001dfa46
diff -r 25db122c05f0 -r 3568b78dc203 main.cpp --- a/main.cpp Wed Jan 25 02:18:22 2017 +0000 +++ b/main.cpp Wed Jan 25 02:41:17 2017 +0000 @@ -141,7 +141,7 @@ } bool is_driving() { - return io.throttle_in->get_throttle() > 0.01f || fabsf(read.w) > 1.0f; + return io.throttle_in->get_throttle() > 0.01f || fabsf(read.w) > W_SAFE; } float update_filter(float old, float x, float str) {