New quadrupod variant
Dependencies: ArthropodIK MMA8451Q MODSERIAL TSI TextLCD mbed-rtos mbed
Fork of Quadrapod by
Diff: main.cpp
- Revision:
- 7:68e488d28f67
- Parent:
- 3:9916f013d978
- Child:
- 10:11176c9c42fc
--- a/main.cpp Fri Jun 26 04:23:14 2015 +0000 +++ b/main.cpp Fri Jun 26 08:10:33 2015 +0000 @@ -1,9 +1,11 @@ #include "mbed.h" #include "rtos.h" #include "MODSERIAL.h" +#include <vector> #include "quadrapod_defs.h" //Includes pins and stuff #include "ArthropodIK.h" // IK solver based on Oscar Liang. +#include "PolyServo.h" /************************************************************************** This is the Quadrupod control software. @@ -18,6 +20,8 @@ ArthropodSolver IKsolver(); +std::vector<DigitalOut * > digivec; + void led_fade_thread(void const *args) { // Note that this function doesn't terminate, which is fine since it runs in // a thread. @@ -31,6 +35,7 @@ Thread::wait(250); led_blue.write(1 - 0.75); Thread::wait(250); + } }