NOT FINISHED YET!!! My first try to get a self built fully working Quadrocopter based on an mbed, a self built frame and some other more or less cheap parts.

Dependencies:   mbed MODI2C

Committer:
maetugr
Date:
Wed Sep 26 12:15:00 2012 +0000
Revision:
0:0c4fafa398b4
Child:
1:5a64632b1eb9
Sensor Test; Acc, Gyro working, result on LCD (servo lib included)

Who changed what in which revision?

UserRevisionLine numberNew contents of line
maetugr 0:0c4fafa398b4 1 #include "LED.h"
maetugr 0:0c4fafa398b4 2 #include "mbed.h"
maetugr 0:0c4fafa398b4 3
maetugr 0:0c4fafa398b4 4 LED::LED() : Led(LED1, LED2, LED3, LED4){ }
maetugr 0:0c4fafa398b4 5
maetugr 0:0c4fafa398b4 6 void LED::shownumber(int number) {
maetugr 0:0c4fafa398b4 7 Led = number;
maetugr 0:0c4fafa398b4 8 }
maetugr 0:0c4fafa398b4 9
maetugr 0:0c4fafa398b4 10 void LED::roll(int times = 1) {
maetugr 0:0c4fafa398b4 11 for (int j = 0; j < times; j++) {
maetugr 0:0c4fafa398b4 12 for(int i=0; i<4; i++) {
maetugr 0:0c4fafa398b4 13 Led = 1 << i;
maetugr 0:0c4fafa398b4 14 wait(0.25);
maetugr 0:0c4fafa398b4 15 }
maetugr 0:0c4fafa398b4 16 }
maetugr 0:0c4fafa398b4 17 }
maetugr 0:0c4fafa398b4 18
maetugr 0:0c4fafa398b4 19 void LED::tilt(int index) {
maetugr 0:0c4fafa398b4 20 Led = Led^(1 << (index-1));
maetugr 0:0c4fafa398b4 21 }