Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: main.cpp
- Revision:
- 223:b986e7cee521
- Parent:
- 215:7aa534d8ec4e
- Child:
- 228:8a14f1da2121
--- 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(); }