Bayley Wang
/
foc-ed_in_the_bot_compact
robot
Diff: errors.cpp
- Revision:
- 235:fe49ec4e9c97
- Parent:
- 204:74714d52a936
- Child:
- 240:2aaffa217627
--- a/errors.cpp Sat Nov 10 09:21:51 2018 +0000 +++ b/errors.cpp Sat Nov 10 09:37:05 2018 +0000 @@ -32,7 +32,7 @@ } bool is_driving() { - return control.torque_percent > 0.01f || fabsf(read.w) > _W_SAFE; + return control.user_cmd > 0.01f || fabsf(read.w) > _W_SAFE; } #define _seterr(x) errors |= (1 << x)