Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of Quadrocopter by
main.cpp
- Committer:
- MarcoF89
- Date:
- 2017-08-02
- Revision:
- 6:27a09e8bebfb
- Parent:
- 4:3eaf38e4809f
- Child:
- 7:a54c97795013
File content as of revision 6:27a09e8bebfb:
#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 ()); } }