New quadrupod variant
Dependencies: ArthropodIK MMA8451Q MODSERIAL TSI TextLCD mbed-rtos mbed
Fork of Quadrapod by
Revision 11:2cf1f6ff9656, committed 2015-07-07
- Comitter:
- ikrase
- Date:
- Tue Jul 07 07:07:20 2015 +0000
- Parent:
- 10:11176c9c42fc
- Commit message:
- New version with more money / time like I planned in the first place.
Changed in this revision
diff -r 11176c9c42fc -r 2cf1f6ff9656 PolyServo.lib --- a/PolyServo.lib Tue Jul 07 07:01:53 2015 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -http://developer.mbed.org/users/ikrase/code/PolyServo/#7d3d0d016758
diff -r 11176c9c42fc -r 2cf1f6ff9656 main.cpp --- 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);
diff -r 11176c9c42fc -r 2cf1f6ff9656 mbed-rtos.lib --- a/mbed-rtos.lib Tue Jul 07 07:01:53 2015 +0000 +++ b/mbed-rtos.lib Tue Jul 07 07:07:20 2015 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/mbed_official/code/mbed-rtos/#ef0a22cdf839 +http://mbed.org/users/mbed_official/code/mbed-rtos/#e695cd34556b