Project Paint / Mbed 2 deprecated arm_control

Dependencies:   mbed QEI biquadFilter

Revision:
18:1c9dc6caab9d
Parent:
14:551049a798a3
Child:
19:a82b55a15457
--- a/test_main.cpp	Thu Nov 03 13:15:00 2016 +0000
+++ b/test_main.cpp	Thu Nov 03 16:29:31 2016 +0000
@@ -1,60 +1,60 @@
-#include "mbed.h"
-#include "robot.h"
-
-// ====== Hardware stuff ======
-
-Robot robot;
-
-AnalogIn emg1(A0);
-AnalogIn emg2(A1);
-
-DigitalOut red(LED_RED);
-DigitalOut green(LED_GREEN);
-DigitalOut blue(LED_BLUE);
-
-//====== Constants =====
-
-enum RobotCommand{NOTHING, UP, DOWN, FORWARD, BACKWARD};
-enum ProgramState{CALIBRATING, UPDOWN, FORBACK};
-
-const float sampleFrequency = 500;
-const float sampleTime = 1.0f/sampleFrequency;
-
-
-//====== Program Variables ======
-
-ProgramState progState;
-RobotCommand robotCommand;
-
-
-//====== Functions ======
-
-
-void calibrate(void) {
-    //Calibrate function -- blocking.
-    //Calculates and sets both emg1threshold and emg2 threshold
-    
-    
-    
-}
-
-void run() {
-    //Run function -- blocking
-    //runs the calibrated robot
-
-}
-
-
-//int main() {
-//    progState = CALIBRATING;
+//#include "mbed.h"
+//#include "robot.h"
+//
+//// ====== Hardware stuff ======
+//
+//Robot robot;
+//
+//AnalogIn emg1(A0);
+//AnalogIn emg2(A1);
+//
+//DigitalOut red(LED_RED);
+//DigitalOut green(LED_GREEN);
+//DigitalOut blue(LED_BLUE);
+//
+////====== Constants =====
+//
+//enum RobotCommand{NOTHING, UP, DOWN, FORWARD, BACKWARD};
+//enum ProgramState{CALIBRATING, UPDOWN, FORBACK};
+//
+//const float sampleFrequency = 500;
+//const float sampleTime = 1.0f/sampleFrequency;
+//
+//
+////====== Program Variables ======
+//
+//ProgramState progState;
+//RobotCommand robotCommand;
+//
+//
+////====== Functions ======
+//
+//
+//void calibrate(void) {
+//    //Calibrate function -- blocking.
+//    //Calculates and sets both emg1threshold and emg2 threshold
 //    
-//    calibrate();
 //    
-//    progState = UPDOWN;
-//    robotCommand = NOTHING;
 //    
-//    run();
-//    
-//    while(true);
-//    return 0;
-//}
\ No newline at end of file
+//}
+//
+//void run() {
+//    //Run function -- blocking
+//    //runs the calibrated robot
+//
+//}
+//
+//
+////int main() {
+////    progState = CALIBRATING;
+////    
+////    calibrate();
+////    
+////    progState = UPDOWN;
+////    robotCommand = NOTHING;
+////    
+////    run();
+////    
+////    while(true);
+////    return 0;
+////}
\ No newline at end of file