Marco Friedmann / Mbed 2 deprecated Quadrocopter2

Dependencies:   mbed TextLCD

Fork of Quadrocopter by Chris Elsholz

Revision:
6:27a09e8bebfb
Parent:
4:3eaf38e4809f
Child:
7:a54c97795013
--- a/main.cpp	Wed Aug 02 12:01:14 2017 +0000
+++ b/main.cpp	Wed Aug 02 13:11:30 2017 +0000
@@ -0,0 +1,19 @@
+#include "mbed.h"
+#include "stdio.h"
+#include <Timer.h>
+#include "messen.h"
+static Serial pc(SERIAL_TX, SERIAL_RX);
+static SPI spi(PE_6,PE_5,PE_2);  //mosi,miso,sclk
+static DigitalOut ncs(PE_4);    //ssel
+
+
+int main()
+{ 
+initialisierung_gyro();
+initialisierung_acc ();
+    while(1)
+    {
+        pc.printf("\n\r");
+        pc.printf("%ld\t%ld\t%ld\t%ld\t%ld\t%ld\t\r",aktuell_gyro_z(), aktuell_gyro_x(), aktuell_gyro_y(), aktuell_acc_x (), aktuell_acc_y (), aktuell_acc_z ());
+    }
+}
\ No newline at end of file