New quadrupod variant
Dependencies: ArthropodIK MMA8451Q MODSERIAL TSI TextLCD mbed-rtos mbed
Fork of Quadrapod by
Diff: main.cpp
- Revision:
- 11:2cf1f6ff9656
- Parent:
- 10:11176c9c42fc
--- a/main.cpp Tue Jul 07 07:01:53 2015 +0000 +++ b/main.cpp Tue Jul 07 07:07:20 2015 +0000 @@ -6,7 +6,7 @@ #include "quadrapod_defs.h" //Includes pins and stuff #include "ArthropodIK.h" // IK solver based on Oscar Liang. -#include "PolyServo.h" +//#include "PolyServo.h" /************************************************************************** This is the Quadrupod control software. @@ -24,11 +24,8 @@ PwmOut LCD_blu(LED_BL_BLU); float red_intensity, green_intensity, blue_intensity; -RPCVariable<float> rpc_bl_red(&red_intensity, "red_lvl"); -RPCVariable<float> rpc_bl_grn(&green_intensity, "green_lvl"); -RPCVariable<float> rpc_bl_blu(&blue_intensity, "blue_lvl"); -ArthropodSolver IKsolver(); + std::vector<DigitalOut * > digivec; @@ -76,21 +73,7 @@ char buf[256], outbuf[256]; // Work is done in the threads, so main() can sleep. - while (1) { - Thread::wait(100); - LCD_red = red_intensity; - LCD_grn = green_intensity; - LCD_blu = blue_intensity; - - - pc.gets(buf, 256); - //Call the static call method on the RPC class - RPC::call(buf, outbuf); - pc.printf("%s\n", outbuf); - - - } - + Thread::wait(osWaitForever);