Motor control for robots. More compact, less object-oriented revision.

Dependencies:   FastPWM3 mbed-dev-f303

Fork of Hobbyking_Cheetah_V1 by Ben Katz

Revision:
4:c023f7b6f462
Parent:
3:6a0015d88d06
Child:
6:4ee1cdc43aa8
--- a/main.cpp	Wed Mar 09 04:00:48 2016 +0000
+++ b/main.cpp	Sat Mar 12 08:04:51 2016 +0000
@@ -14,10 +14,15 @@
 Ticker  testing;
 
 
+
+//SPI spi(PB_15, PB_14, PB_13);
+//GPIOB->MODER = (1 << 8); // set pin 4 to be general purpose output
+
+//DigitalOut chipselect(PB_12);
+
 using namespace FastMath;
 using namespace Transforms;
 
-//float offset = 0;//-0.24;
 
 // Current Sampling IRQ
 /*
@@ -60,7 +65,6 @@
        
 int main() {
     wait(1);
-
     testing.attach(&Loop, .0001);
     //testing.attach(&PrintStuff, .05);
     //inverter.SetDTC(.1, 0, 0);