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

Dependencies:   mbed BLE_API nRF51822

Revision:
4:c28c34fcb120
Parent:
2:697726f1d35c
--- a/main.cpp	Tue Nov 11 01:43:24 2014 +0000
+++ b/main.cpp	Tue Nov 25 01:35:56 2014 +0000
@@ -5,7 +5,9 @@
 AnalogIn strut1Force(P0_1);
 AnalogIn strut2Force(P0_2);
 AnalogIn strut3Force(P0_3);
-AnalogIn strut3Force(P0_4);
+AnalogIn strut4Force(P0_4);
+AnalogIn seatForce(P0_5);
+AnalogIn cupBottomForce(P0_6);
 
 DigitalOut light(LED1);
  
@@ -14,9 +16,10 @@
 pc.printf("init\n");
     
     while (true) {
-
-        pc.printf("%1.2f,%1.2f,%1.2f,%1.2f\n", strut1Force.read(), strut2Force.read(), strut3Force.read(), 0.01); //print force data to processing      
-        wait(0.005f); // wait 5ms (200Hz update rate)
+        light = 1;
+        pc.printf("%1.2f,%1.2f,%1.2f,%1.2f,%1.2f,%1.2f\n", strut1Force.read(), strut2Force.read(), strut3Force.read(), strut4Force.read(), seatForce.read(), cupBottomForce.read()); //print force data to processing      
+        wait(0.005f); // wait 50ms (200Hz update rate)
+        light = 0;
     }
 }
 /* // Sensor graphing sketch with threshold