Bayley Wang
/
foc-ed_in_the_bot_compact
robot
Diff: main.cpp
- Revision:
- 195:b61a734eb50c
- Parent:
- 194:05e119bc5a78
- Child:
- 196:7172e6e28867
--- a/main.cpp Sat Feb 10 06:05:50 2018 +0000 +++ b/main.cpp Sat Feb 10 06:09:42 2018 +0000 @@ -31,7 +31,6 @@ void commutate() { /*safety checks, do we do anything this cycle?*/ - //if (!control.enabled && io.throttle_in->get_enabled() && io.pos->IsValid() && is_driving()) { if (!control.enabled && checks_passed()) { go_enabled(); } @@ -103,7 +102,6 @@ vc = vc - voff; /*safety checks, reset integral*/ - //if (!io.throttle_in->get_enabled() || !io.pos->IsValid() || !is_driving()) { if (!checks_passed()) { /*do this even in disabled state, to keep integral down*/ go_disabled();