Bayley Wang
/
foc-ed_in_the_bot_compact
robot
Diff: main.cpp
- Revision:
- 223:b986e7cee521
- Parent:
- 215:7aa534d8ec4e
- Child:
- 228:8a14f1da2121
diff -r b58a95551632 -r b986e7cee521 main.cpp --- a/main.cpp Tue Oct 02 06:21:44 2018 +0000 +++ b/main.cpp Tue Oct 02 07:12:01 2018 +0000 @@ -10,6 +10,7 @@ #include "ThrottleMapper.h" #include "Calibration.h" #include "Filter.h" +#include "LedBlinker.h" #include "BREMSStructs.h" #include "BREMSConfig.h" @@ -42,7 +43,8 @@ slow_loop(); } loop_counter++; - + io.blink->update(); + /*update position, sin, cos*/ foc.p = io.pos->GetElecPosition() - _POS_OFFSET; float sin_p = sinf(foc.p); @@ -180,7 +182,7 @@ BREMSInit(&io, &read, &foc, &control, false); io.pc->attach(rxCallback); - + for (;;) { io.logger->flush(); }