Basic output of force sensor data to serial, in form "value1/n"

Dependencies:   mbed BLE_API nRF51822

Revision:
1:d80d9ec38f57
Parent:
0:44196fc76b4f
Child:
2:697726f1d35c
--- a/main.cpp	Mon Nov 03 05:33:36 2014 +0000
+++ b/main.cpp	Tue Nov 11 01:09:06 2014 +0000
@@ -2,22 +2,20 @@
  
 //serial connection to PC via USB
 Serial pc(USBTX, USBRX);
-AnalogIn press(A0);
+AnalogIn strut1Force(P0_1);
+AnalogIn strut2Force(P0_2);
+AnalogIn strut3Force(P0_3);
+
 DigitalOut light(LED1);
  
 int main(void)
 {
-    
-    float x;
-    float max = 0;
-    int i = 0;
+pc.printf("init\n");
     
     while (true) {
-        x= press.read();
-        pc.printf("%1.2f\n", x); //print ascii-encoded float to serial port        
+
+        pc.printf("strut 1 %1.2f, strut 2 %1.2f, strut 3 Voltage%1.2f\n", strut1Force.read(), strut2Force.read(), strut3Force.read()); //print force data to processing      
         wait(0.005f); // wait 5ms (200Hz update rate)
-        i = 0;
-        max = 0;
     }
 }
 /* // Sensor graphing sketch with threshold